Sha256: c70bc0e5da8947d332ead8c03ada03e99bedc1466fe2b579d7b3600f50a85f39

Contents?: true

Size: 808 Bytes

Versions: 66

Compression:

Stored size: 808 Bytes

Contents

#!/bin/bash
#
# god       Startup script for god (http://god.rubyforge.org)
#
# chkconfig: - 85 15
# description: God is an easy to configure, easy to extend monitoring \
#              framework written in Ruby.
#              

CONF_DIR=/etc/god

RETVAL=0

# Go no further if config directory is missing.
[ -d "$CONF_DIR" ] || exit 0

case "$1" in
    start)
      # Create pid directory
      ruby /usr/bin/god -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    stop)
      ruby /usr/bin/god terminate
      RETVAL=$?
  ;;
    restart)
      ruby /usr/bin/god terminate
      ruby /usr/bin/god -c $CONF_DIR/master.conf
      RETVAL=$?
  ;;
    status)
      ruby /usr/bin/god status
      RETVAL=$?
  ;;
    *)
      echo "Usage: god {start|stop|restart|status}"
      exit 1
  ;;
esac      

exit $RETVAL

Version data entries

66 entries across 66 versions & 21 rubygems

Version Path
mojombo-god-0.7.11 init/god
mojombo-god-0.7.12 init/god
mojombo-god-0.7.13 init/god
mojombo-god-0.7.14 init/god
mojombo-god-0.7.15 init/god
mojombo-god-0.7.16 init/god
mojombo-god-0.7.20 init/god
mojombo-god-0.7.7 init/god
mojombo-god-0.7.9 init/god
obitum-god-0.7.14.1 init/god
obitum-god-0.7.14 init/god
pauldowman-ec2onrails-0.9.10 server/files/etc/init.d/god
pjhyett-god-0.7.12 init/god
relevance-god-0.7.12.1 init/god
relevance-god-0.7.12 init/god
saimonmoore-god-0.7.9 init/god
samhendley-god-0.7.13 init/god
strobemonkey-god-0.7.13 init/god
olgen-god-0.9.2 init/god
olgen-god-0.9.1 init/god