diff --git a/lib/God.js b/lib/God.js index 516be967..e5c9fee8 100644 --- a/lib/God.js +++ b/lib/God.js @@ -155,7 +155,8 @@ God.handleExit = function handleExit(clu, exit_code) { */ God.executeApp = function executeApp(env, cb) { // Check if this is and old temporary process - if (env['pm_id'].search('_old_') != -1) + if (env['pm_id'] != undefined && + env['pm_id'].search('_old_') != -1) return false; var env_copy = Common.serialize(env);