Always start the deamon using node

This commit is contained in:
Linus Unnebäck 2017-03-08 16:30:59 +01:00
parent 1c3fcb83b6
commit f68f4448d8
No known key found for this signature in database
GPG Key ID: F23BD23774478D34

View File

@ -223,7 +223,7 @@ Client.prototype.launchDaemon = function(opts, cb) {
Common.printOut(that.conf.PREFIX_MSG + 'Spawning PM2 daemon with pm2_home=' + this.pm2_home);
var child = require('child_process').spawn(process.execPath || 'node', node_args, {
var child = require('child_process').spawn('node', node_args, {
detached : true,
cwd : that.conf.cwd || process.cwd(),
env : util._extend({