Skip to content

Commit

Permalink
[fix] Use process.execPath instead of a hashbang.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed Jun 28, 2012
1 parent 4f72f8c commit 4ed1beb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bin/monitor
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#! /usr/bin/env node

var path = require('path'),
forever = require(path.resolve(__dirname, '..', 'lib', 'forever')),
started;
Expand Down
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ forever.startDaemon = function (script, options) {
errFD = fs.openSync(options.logFile, 'a');
monitorPath = path.resolve(__dirname, '..', 'bin', 'monitor');

monitor = spawn(monitorPath, [ script ], {
monitor = spawn(process.execPath, [ monitorPath, script ], {
stdio: [ 'ipc', outFD, errFD ],
detached: true
});
Expand Down

0 comments on commit 4ed1beb

Please sign in to comment.