Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # god Startup script for God.
- #
- # chkconfig: - 85 15
- # description: Run god that starts and monitors all Winnow processes
- #
- CONF=/etc/god.conf
- RETVAL=0
- # Go no further if config directory is missing.
- [ -f "$CONF" ] || exit 0
- case "$1" in
- start)
- /usr/local/bin/god -c $CONF -l /var/log/god.log -P /var/run/god.pid --no-syslog
- RETVAL=$?
- ;;
- stop)
- /usr/local/bin/god quit
- RETVAL=$?
- ;;
- restart)
- /usr/local/bin/god quit
- /usr/local/bin/god -c $CONF -l /var/log/god.log -P /var/run/god.pid --no-syslog
- RETVAL=$?
- ;;
- *)
- echo "Usage: god {start|stop|restart}"
- exit 1
- ;;
- esac
- exit $RETVAL
Add Comment
Please, Sign In to add comment