Sha256: 2cf66a0f97930a89610be2e0a9a44eab32fdce8b0255cdce958329c752e9c87d

Contents?: true

Size: 722 Bytes

Versions: 71

Compression:

Stored size: 722 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)
      god quit
      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

71 entries across 71 versions & 1 rubygems

Version Path
daddy-0.5.12 itamae/templates/etc/init.d/god.erb
daddy-0.5.11 itamae/templates/etc/init.d/god.erb
daddy-0.5.10 itamae/templates/etc/init.d/god.erb
daddy-0.5.9 itamae/templates/etc/init.d/god.erb
daddy-0.5.8 itamae/templates/etc/init.d/god.erb
daddy-0.5.7 itamae/templates/etc/init.d/god.erb
daddy-0.5.6 itamae/templates/etc/init.d/god.erb
daddy-0.5.5 itamae/templates/etc/init.d/god.erb
daddy-0.5.4 itamae/templates/etc/init.d/god.erb
daddy-0.5.3 itamae/templates/etc/init.d/god.erb
daddy-0.5.2 lib/tasks/god/god
daddy-0.5.1 lib/tasks/god/god
daddy-0.5.0 lib/tasks/god/god
daddy-0.4.10 lib/tasks/god/god
daddy-0.4.9 lib/tasks/god/god
daddy-0.4.8 lib/tasks/god/god
daddy-0.4.7 lib/tasks/god/god
daddy-0.4.6 lib/tasks/god/god
daddy-0.4.5 lib/tasks/god/god
daddy-0.4.4 lib/tasks/god/god