Created
December 2, 2010 19:13
-
-
Save 3rd-Eden/725870 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ '0': 'restart', | |
'1': 'ws', | |
'2': null, | |
'3': | |
{ stdout: | |
{ path: 'log/ws-out.log', | |
fd: 8, | |
writable: true, | |
flags: 'a+', | |
encoding: 'utf8', | |
mode: 438, | |
busy: false, | |
_queue: [] }, | |
stderr: | |
{ path: 'log/ws-err.log', | |
fd: 9, | |
writable: true, | |
flags: 'a+', | |
encoding: 'utf8', | |
mode: 438, | |
busy: false, | |
_queue: [] }, | |
times: 1, | |
options: | |
{ forever: true, | |
outFile: 'log/ws-out.log', | |
errFile: 'log/ws-err.log', | |
pidFile: 'log/ws.pid', | |
options: [Object], | |
silent: false }, | |
_events: | |
{ exit: [Function], | |
stop: [Function], | |
restart: [Function] }, | |
child: | |
{ killed: false, | |
_internal: [Object], | |
stdin: [Object], | |
stdout: [Object], | |
stderr: [Object], | |
pid: [Getter], | |
fds: [Object], | |
_events: [Object] }, | |
running: true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a upstart monitoring service for our http.js so we are sure it will always run | |
var http = new ( forever.Forever )( path.join( __dirname, "http.js" ), { | |
forever: true, // Run forever | |
outFile: conf.debug.log_http_stdout, // Stdout log location | |
errFile: conf.debug.log_http_stderr, // Stderr log location | |
options: [] | |
}); | |
// Create a upstart monitoring service for our ws.js so we are sure it will always run | |
var ws = new ( forever.Forever )( path.join( __dirname, "ws.js" ), { | |
forever: true, // Run forever | |
outFile: conf.debug.log_ws_stdout, // Stdout log location | |
errFile: conf.debug.log_ws_stderr, // Stderr log location | |
options: [] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node -v | |
v0.3.1-pre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Forever detected script exited with code: 1 | |
Caught exception: TypeError: Cannot read property 'pidPath' of undefined | |
TypeError: Cannot read property 'pidPath' of undefined, at [object Object].save (/usr/local/lib/node/.npm/forever/0.3.0/package/lib/forever.js:438:35), at Array.<anonymous> (/usr/local/lib/node/.npm/forever/0.3.0/package/lib/forever.js:390:26), at EventEmitter._tickCallback (node.js:42:22), at node.js:616:9 | |
} | |
Forever restarting script for 1 time |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment