Skip to content

Instantly share code, notes, and snippets.

@gjedeer
Created July 11, 2013 11:06
Show Gist options
  • Save gjedeer/5974554 to your computer and use it in GitHub Desktop.
Save gjedeer/5974554 to your computer and use it in GitHub Desktop.
Simplest Varnish watchdog possible
#!/bin/bash
/usr/bin/varnishadm quit >/dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 2 ]
then
/etc/init.d/varnish restart
fi
@gish
Copy link

gish commented Jul 25, 2013

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment