[DAEMON-244] appcd-nodejs: Add mechanism for removing old Node.js executables
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2018-03-20T19:14:56.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Appc Daemon 1.1.0 |
| Components | appcd-nodejs |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2018-03-14T16:05:04.000+0000 |
| Updated | 2018-03-20T19:14:56.000+0000 |
Description
We would like to upgrade the Node.js version of the Appc Daemon, but everytime we do, it will download a new Node.js executable. The problem is we do not want to end up with dozens of Node.js executables.
We need a way of timestamp when a specific version of Node.js was last run. Then
appcd-nodejs needs a service that uses a setTimeout() that periodically archives/deletes executables that haven't been used for some period of time.
https://github.com/appcelerator/appc-daemon/pull/299