Created
July 11, 2013 11:06
-
-
Save gjedeer/5974554 to your computer and use it in GitHub Desktop.
Simplest Varnish watchdog possible
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
#!/bin/bash | |
/usr/bin/varnishadm quit >/dev/null 2>&1 | |
RETVAL=$? | |
if [ $RETVAL -eq 2 ] | |
then | |
/etc/init.d/varnish restart | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!