Skip to content

Commit

Permalink
[bin] Make forever start work with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki authored and indexzero committed Dec 23, 2011
1 parent 55d96b2 commit d983726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ forever.startDaemon = function (script, options) {
options.pidFile = forever.pidFilePath(options.pidFile || options.uid + '.pid');

if (!process.send) {
fork(process.argv[1], ['start', script], {env: process.env});
fork(process.argv[1], process.argv.slice(2), {env: process.env});
process.exit(0);
}
else {
Expand Down

0 comments on commit d983726

Please sign in to comment.