Permalink
Browse files

[fix] Use process.execPath instead of a hashbang.

  • Loading branch information...
1 parent 4f72f8c commit 4ed1beb8ffa0a71600d7f27d771321e487988a39 @AvianFlu AvianFlu committed Jun 28, 2012
Showing with 1 addition and 3 deletions.
  1. +0 −2 bin/monitor
  2. +1 −1 lib/forever.js
View
2 bin/monitor
@@ -1,5 +1,3 @@
-#! /usr/bin/env node
-
var path = require('path'),
forever = require(path.resolve(__dirname, '..', 'lib', 'forever')),
started;
View
2 lib/forever.js
@@ -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
});

0 comments on commit 4ed1beb

Please sign in to comment.