Created
November 30, 2011 18:05
-
-
Save joemccann/1410062 to your computer and use it in GitHub Desktop.
Monit script for bouncy
This file contains hidden or 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 node with pidfile /etc/init.d/bouncy.node.pid | |
start "/etc/init.d/yourApp start" | |
stop "/etc/init.d/yourApp stop" | |
if failed host 127.0.0.1 port 80 | |
then restart |
Also, I'm not setting a polling interval here as it is set in my /etc/monit/monitrc
file:
set daemon 3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The pid file for bouncy, in my case, is stored at the path
/etc/init.d/bouncy.node.pid
so just substitute the path to the bouncy pid file if it is not located there.I capture the bouncy pid file with the following: