Created
January 12, 2012 04:29
-
-
Save Miserlou/1598697 to your computer and use it in GitHub Desktop.
Monit Node
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
#!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