Skip to content

Instantly share code, notes, and snippets.

@Miserlou
Created January 12, 2012 04:29
Show Gist options
  • 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
@KingGame0
Copy link

<style type="text/css"></style> KingGame -- Gold99 PGasia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment