Sha256: fb5681dc63274ccfa239bc9f798a6acac8c94775a45e446c0afa528082724784
Contents?: true
Size: 850 Bytes
Versions: 5
Compression:
Stored size: 850 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 %>)" DAEMON="<%= backgroundjob_bin_path %>" PIDFILE="<%= backgroundjob_pid_path %>" start() { echo -n $"Starting $DESC: " daemon --user sick --pidfile $PIDFILE $DAEMON RETVAL=$? echo return $RETVAL; } stop() { echo -n $"Stopping $DESC:" killproc -p $PIDFILE 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
5 entries across 5 versions & 1 rubygems