Sha256: 683c21214ca1e9ee94577a8330e72703c956211aaa18d646a35427ac6f8263ca
Contents?: true
Size: 1.53 KB
Versions: 58
Compression:
Stored size: 1.53 KB
Contents
### BEGIN INIT INFO # Provides: filbunked # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts the trinidad server # Description: starts trinidad using start-stop-daemon ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON="/var/lib/gems/1.8/bin/filbunked" DAEMON_OPTS="-c /etc/filbunke/filbunke_config.yml" NAME=filbunked DESC=filbunked test -x $DAEMON || exit 0 set -e . /lib/lsb/init-functions start(){ start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- $DAEMON_OPTS || true } stop(){ start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid || true } force_stop(){ stop } force_restart(){ force_stop sleep 2 start } case "$1" in start) echo -n "Starting $DESC: " start echo "$NAME." ;; stop) echo -n "Stopping $DESC: " stop echo "$NAME." ;; force-stop) echo -n "Stopping $DESC: " force_stop echo "$NAME." ;; restart|reload) echo -n "Restarting $DESC: " force_restart echo "$NAME." force-restart) echo -n "Restarting $DESC: " force_restart echo "$NAME." ;; status) status_of_proc -p /var/run/$NAME.pid "$DAEMON" $NAME && exit 0 || exit $? ;; *) echo "Usage: $NAME {start|stop|restart|reload|force-restart|force-stop|status}" >&2 exit 1 ;; esac exit 0
Version data entries
58 entries across 58 versions & 1 rubygems