Sha256: 5c52e5c53ad40c65c52fa6032cda46d8ed44ffa1d793598c363d664fb815b449
Contents?: true
Size: 809 Bytes
Versions: 12
Compression:
Stored size: 809 Bytes
Contents
#!/bin/bash # # god Startup script for God monitoring tool. # # chkconfig: - 85 15 # description: god monitors your system # CONFIG_FILES=/etc/god/*.god PID=/var/run/god.pid LOG=/var/log/god.log PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RETVAL=0 case "$1" in start) god -P $PID -l $LOG --log-level info for config in $CONFIG_FILES; do god load $config done RETVAL=$? ;; stop) kill `cat $PID` RETVAL=$? ;; restart) kill `cat $PID` god -P $PID -l $LOG --log-level info for config in $CONFIG_FILES; do god load $config done RETVAL=$? ;; status) RETVAL=$? ;; *) echo "Usage: god {start|stop|restart|status}" exit 1 ;; esac exit $RETVAL
Version data entries
12 entries across 12 versions & 1 rubygems