Skip to content

Instantly share code, notes, and snippets.

@capynet
Last active August 29, 2015 14:06
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 capynet/c7aa09a996fe909a0960 to your computer and use it in GitHub Desktop.
Save capynet/c7aa09a996fe909a0960 to your computer and use it in GitHub Desktop.
Monit template file for monit Node.js apps
check process my-service with pidfile "/var/run/my-service.pid"
start program = "/etc/init.d/my-service start"
stop program = "/etc/init.d/my-service stop"
if failed
port [THE NODEJS PORT HERE] protocol HTTP
request / with timeout 10 seconds
then restart
@capynet
Copy link
Author

capynet commented Sep 13, 2014

This monit config file works with https://gist.github.com/capynet/2de13de81ef8a71f2b2f

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