Last active
August 29, 2015 14:06
-
-
Save capynet/c7aa09a996fe909a0960 to your computer and use it in GitHub Desktop.
Monit template file for monit Node.js apps
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This monit config file works with https://gist.github.com/capynet/2de13de81ef8a71f2b2f