Created
October 22, 2012 23:14
-
-
Save sargun/3935371 to your computer and use it in GitHub Desktop.
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
description "Monitoring wrapper" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
export RUNLEVEL | |
pre-start script | |
while ! ping -c1 mon-001; do sleep 5; done | |
exit 0 | |
end script | |
post-start exec /etc/init.d/monitoring start $RUNLEVEL | |
post-stop exec /etc/init.d/monitoring stop $RUNLEVEL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment