Created
February 26, 2011 08:26
-
-
Save saschagehlich/845050 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
'node' failed, cannot open a connection to INET[127.0.0.1:3000] via TCP |
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
set logfile /var/log/monit | |
check host node with address 127.0.0.1 | |
start program = "/home/filsh5/launch_web.sh" | |
stop program = "/usr/bin/pkill -f 'node /home/filsh5/web/node.js'" | |
if failed port 3000 protocol HTTP | |
request / | |
with timeout 20 seconds for 2 cycles | |
then restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment