Sha256: 552249b43cbb07fc4c31173cadd99e07a73c1fbd834e9e58d4b34eeaa803afd3

Contents?: true

Size: 762 Bytes

Versions: 51

Compression:

Stored size: 762 Bytes

Contents

#!/bin/bash
#
# god       Startup script for God monitoring tool.
#
# chkconfig: - 85 15
# description: god monitors your system
#              

PID=/var/run/god.pid
CONFIG=/etc/god/master.conf
LOG=/var/log/god.log
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
RETVAL=0

case "$1" in
    start)
      echo 'Starting god'
      god -P $PID -c $CONFIG -l $LOG --log-level info
      RETVAL=$?
  ;;
    stop)
      if test -e $PID ; then
        god quit
      fi
      RETVAL=$?
  ;;
    restart)
      god quit
      echo 'Starting god'
      god -P $PID -c $CONFIG -l $LOG --log-level info
      RETVAL=$?
  ;;
    status)
      god status
      RETVAL=$?
  ;;
    *)
      echo "Usage: god {start|stop|restart|status}"
      exit 1
  ;;
esac

exit $RETVAL

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
daddy-0.9.9 itamae/templates/etc/init.d/god.erb
daddy-0.9.8 itamae/templates/etc/init.d/god.erb
daddy-0.9.7 itamae/templates/etc/init.d/god.erb
daddy-0.9.6 itamae/templates/etc/init.d/god.erb
daddy-0.9.5 itamae/templates/etc/init.d/god.erb
daddy-0.9.4 itamae/templates/etc/init.d/god.erb
daddy-0.9.3 itamae/templates/etc/init.d/god.erb
daddy-0.9.2 itamae/templates/etc/init.d/god.erb
daddy-0.9.1 itamae/templates/etc/init.d/god.erb
daddy-0.9.0 itamae/templates/etc/init.d/god.erb
daddy-0.8.1 itamae/templates/etc/init.d/god.erb
daddy-0.8.0 itamae/templates/etc/init.d/god.erb
daddy-0.7.9 itamae/templates/etc/init.d/god.erb
daddy-0.7.8 itamae/templates/etc/init.d/god.erb
daddy-0.7.7 itamae/templates/etc/init.d/god.erb
daddy-0.7.6 itamae/templates/etc/init.d/god.erb
daddy-0.7.5 itamae/templates/etc/init.d/god.erb
daddy-0.7.4 itamae/templates/etc/init.d/god.erb
daddy-0.7.3 itamae/templates/etc/init.d/god.erb
daddy-0.7.2 itamae/templates/etc/init.d/god.erb