Skip to content

Instantly share code, notes, and snippets.

@Drewzar
Created July 22, 2011 21:12
Show Gist options
  • Save Drewzar/1100441 to your computer and use it in GitHub Desktop.
Save Drewzar/1100441 to your computer and use it in GitHub Desktop.
monit wrapper
#!/bin/bash
case $1 in
start)
echo $$ > /var/run/znc.pid;
exec znc -d /var/lib/znc/.znc ;;
stop)
kill 'cat /var/run/znc.pid' ;;
*)
echo "usage: goznc {start|stop}" ;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment