Skip to content

Commit 4ed1beb

Browse files
committed
[fix] Use process.execPath instead of a hashbang.
1 parent 4f72f8c commit 4ed1beb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: bin/monitor

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#! /usr/bin/env node
2-
31
var path = require('path'),
42
forever = require(path.resolve(__dirname, '..', 'lib', 'forever')),
53
started;

Diff for: lib/forever.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ forever.startDaemon = function (script, options) {
388388
errFD = fs.openSync(options.logFile, 'a');
389389
monitorPath = path.resolve(__dirname, '..', 'bin', 'monitor');
390390

391-
monitor = spawn(monitorPath, [ script ], {
391+
monitor = spawn(process.execPath, [ monitorPath, script ], {
392392
stdio: [ 'ipc', outFD, errFD ],
393393
detached: true
394394
});

0 commit comments

Comments
 (0)