Skip to content

Commit

Permalink
[fix] Respect -c on restart. Fixes #159
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Dec 2, 2011
1 parent 0e7873b commit 0812449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ forever.restart = function (target, format) {
if (proc.silent) {
restartCommand.push('--silent true');
}

if (proc.command) {
restartCommand.push('-c', command);
}

if (proc.outFile) {
restartCommand.push('-o', path.join(proc.sourceDir, proc.outFile));
Expand Down

0 comments on commit 0812449

Please sign in to comment.