Skip to content

Instantly share code, notes, and snippets.

@sargun
Created October 22, 2012 23:14
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 sargun/3935371 to your computer and use it in GitHub Desktop.
Save sargun/3935371 to your computer and use it in GitHub Desktop.
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