Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
God init script
#!/bin/bash
#
# God
#
# chkconfig: - 85 15
# description: start, stop, restart God
#
. /etc/rc.d/init.d/functions
RETVAL=0
god=/usr/local/bin/god
PID_FILE=/var/run/god.pid
LOG_FILE=/var/log/god/god.log
CONFIG_FILE=/etc/god/config.god
prog=$(basename $god)
case "$1" in
start)
$god -P $PID_FILE -l $LOG_FILE -c $CONFIG_FILE
RETVAL=$?
;;
stop)
kill `cat /var/run/god.pid`
RETVAL=$?
;;
restart)
kill `cat /var/run/god.pid`
$god -P $PID_FILE -l $LOG_FILE -c $CONFIG_FILE
RETVAL=$?
;;
status)
status $prog
RETVAL=$?
;;
*)
echo "Usage: god {start|stop|restart|status}"
exit 1
;;
esac
exit $RETVAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.