Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Miserlou
Created January 12, 2012 04:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Miserlou/1598697 to your computer and use it in GitHub Desktop.
Save Miserlou/1598697 to your computer and use it in GitHub Desktop.
Monit Node
#!monit
set logfile /var/log/monit.log
check process nodejs with pidfile "/var/www/NODEAPP/YOUR_APP.pid"
start program = "/etc/init.d/node_app start"
stop program = "/etc/init.d/node_app stop"
if failed port 8080 protocol HTTP
request /
with timeout 10 seconds
then restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment