Resume all docker apps on startup

Fixes #64
This commit is contained in:
Girish Ramakrishnan
2014-08-23 21:19:15 -07:00
parent ad4285d55a
commit dd2a8e9224
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -42,7 +42,6 @@ function resume() {
appdb.getAll(function (error, apps) {
if (error) throw error;
apps.forEach(function (app) {
if (app.installationState === appdb.ISTATE_INSTALLED) return;
debug('Creating process for ' + app.id + ' with state ' + app.installationState);
tasks[app.id] = child_process.fork(__dirname + '/apptask.js', [ app.id ]);
});
+1
View File
@@ -609,6 +609,7 @@ function startTask(appId, callback) {
if (app.runState === appdb.RSTATE_PENDING_STOP) {
stopApp(app, callback);
} else {
debug('Resuming app : %s', app.id);
runApp(app, callback);
}