Skip to content

Commit

Permalink
[ui dist] Output info about process being killed by signal
Browse files Browse the repository at this point in the history
Fixes #420.
  • Loading branch information
mmalecki committed May 9, 2013
1 parent 22a3923 commit 8afad64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,10 @@ forever.logEvents = function (monitor) {
forever.out.error('Forever restarting script for ' + monitor.times + ' time')
});

monitor.on('exit:code', function (code) {
forever.out.error('Forever detected script exited with code: ' + code);
monitor.on('exit:code', function (code, signal) {
forever.out.error(code
? 'Forever detected script exited with code: ' + code
: 'Forever detected script was killed by signal: ' + signal);
});
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"colors": "0.6.0-1",
"cliff": "0.1.8",
"flatiron": "0.3.5",
"forever-monitor": "1.2.1",
"forever-monitor": "1.2.2",
"nconf": "0.6.7",
"nssocket": "~0.5.1",
"optimist": "0.4.0",
Expand Down

0 comments on commit 8afad64

Please sign in to comment.