Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # This is the crontab script for znc.
- #
- # Crontab add: */2 * * * * /home/algabe/znc-1.4/zncchk >/dev/null 2>&1
- #
- # Please change the following path to your znc-directory.
- ZNCPATH=/usr/local/bin/
- # the rest should be kept as is
- if test -r $ZNCPATH/znc.pid; then
- ZNCPID=$(cat $ZNCPATH/znc.pid)
- if $(kill -CHLD $ZNCPID >/dev/null 2>&1)
- then
- exit 0
- fi
- fi
- cd $ZNCPATH
- ./znc &>/dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement