Created
July 22, 2011 21:12
-
-
Save Drewzar/1100441 to your computer and use it in GitHub Desktop.
monit wrapper
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
#!/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