Sha256: a028530f47b8886f000086a14d0d49a614fcfa1b8e6c2cc8171cb9cad07153ca
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
#!/bin/sh ### BEGIN INIT INFO # Provides: god # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: God ### END INIT INFO NAME=god DESC=god GOD_BIN=/usr/local/bin/<%= bin_god %> GOD_PID=/var/run/god.pid GOD_LOG=/var/log/god.log set -e # Make sure the binary and the config file are present before proceeding test -x $GOD_BIN || exit 0 # Create this file and put in a variable called GOD_CONFIG, pointing to # your God configuration file test -f /etc/default/god && . /etc/default/god [ $GOD_CONFIG ] || exit 0 . /lib/lsb/init-functions RETVAL=0 case "$1" in start) echo -n "Starting $DESC: " $GOD_BIN -c $GOD_CONFIG -P $GOD_PID -l $GOD_LOG RETVAL=$? echo "$NAME." ;; stop) echo -n "Stopping $DESC: " kill `cat $GOD_PID` RETVAL=$? echo "$NAME." ;; restart) echo -n "Restarting $DESC: " kill `cat $GOD_PID` $GOD_BIN -c $GOD_CONFIG -P $GOD_PID -l $GOD_LOG RETVAL=$? echo "$NAME." ;; status) $GOD_BIN status RETVAL=$? ;; *) echo "Usage: god {start|stop|restart|status}" exit 1 ;; esac exit $RETVAL
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dark-capistrano-recipes-0.8.4 | doc/god/god.init.erb |
dark-capistrano-recipes-0.8.3 | doc/god/god.init.erb |
dark-capistrano-recipes-0.8.2 | doc/god/god.init.erb |