diff options
Diffstat (limited to 'media-gfx/drqueue/files/drqueue-0.64.3-etc-initd-drqsd')
-rwxr-xr-x | media-gfx/drqueue/files/drqueue-0.64.3-etc-initd-drqsd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-gfx/drqueue/files/drqueue-0.64.3-etc-initd-drqsd b/media-gfx/drqueue/files/drqueue-0.64.3-etc-initd-drqsd new file mode 100755 index 000000000000..65b3ced86374 --- /dev/null +++ b/media-gfx/drqueue/files/drqueue-0.64.3-etc-initd-drqsd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + [ -e "${DRQUEUESLAVE_PIDFILE}" ] && rm -f ${DRQUEUESLAVE_PIDFILE} &>/dev/null + + ebegin "Starting drqsd" + chown drqueue `dirname ${DRQUEUESLAVE_PIDFILE}` &>/dev/null + ${ENV} /sbin/start-stop-daemon -b --start --quiet --startas /usr/bin/slave \ + --pidfile ${DRQUEUESLAVE_PIDFILE} --make-pidfile + + eend $? +} + +stop() { + ebegin "Stopping drqsd" + pkill -u root,drqueue slave + start-stop-daemon --stop --quiet --pidfile "${DRQUEUESLAVE_PIDFILE}" + rm -f "${DRQUEUESLAVE_PIDFILE}" + eend $? +} + |