#!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 PIDFILE=/var/run/jobarchived.pid depend() { need gmond } start() { ebegin "Starting Jobarchived" start-stop-daemon --start --exec /sbin/jobarchived.py -- -p ${PIDFILE} -c /etc/jobarchived.conf eend 0 } stop() { ebegin "Stopping Jobarchived" start-stop-daemon --stop --quiet --signal TERM -p ${PIDFILE} eend $? } restart() { svc_stop sleep 3 svc_start } # vim:ts=4