Sha256: 2737f4b76c883ddcb05faa3bc515169970a7c11acec78d092a2bdc6ee605749a
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
#! /bin/sh # backgroundjob_<%= application %>: Backgroundjob daemon for <%= application %> # # chkconfig: - 86 14 # description: backgroundjob daemon # processname: bj # # Author: Gabriel Handford http://ducktyper.com # Source function library . /etc/rc.d/init.d/functions RETVAL=0 DESC="backgroundjob daemon (<%= application %>)" BIN_PATH="<%= backgroundjob_bin_path %>" PID_FILE="<%= backgroundjob_pid_path %>" start() { echo -n $"Starting $DESC: " daemon --user sick $BIN_PATH RETVAL=$? echo return $RETVAL; } stop() { echo -n $"Stopping $DESC:" killproc -p $PID_FILE RETVAL=$? echo return $RETVAL; } case "$1" in start) start ;; stop) stop ;; restart) stop sleep 1 start RETVAL=$?; ;; *) echo "Usage: $0 {start|stop|restart}" >&2 RETVAL=3; ;; esac exit $RETVAL;
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
calas-capitate-0.3.6 | lib/templates/backgroundjob/backgroundjob.initd.centos.erb |
capitate-0.3.6 | lib/templates/backgroundjob/backgroundjob.initd.centos.erb |