Skip to content

Instantly share code, notes, and snippets.

@saschagehlich
Created February 26, 2011 08:26
Show Gist options
  • Save saschagehlich/845050 to your computer and use it in GitHub Desktop.
Save saschagehlich/845050 to your computer and use it in GitHub Desktop.
'node' failed, cannot open a connection to INET[127.0.0.1:3000] via TCP
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