summaryrefslogtreecommitdiff
blob: ebf96b7706c37421d85bd4efdea533eb7610e75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/sbin/runscript
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrrip/files/vdrrip-qh,v 1.2 2006/10/13 21:36:31 hd_brummy Exp $

# default dir's / files
QUEUE="/etc/vdr/plugins/queue.vdrrip"

depend() {
	need localmount
}

start() {
	ebegin "Starting vdrrip queuehandler"
	start-stop-daemon --start --background \
	--make-pidfile \
	--pidfile /var/run/vdrrip-qh.pid --user ${VDRRIP_USER} \
	--exec /usr/bin/vdrrip-qh -- ${QUEUE} ${VDRRIP_TEMPDIR}
	eend $? "Couldn't start vdrrip-qh"
}

stop() {
	ebegin "Stopping vdrrip queuehandler"
	start-stop-daemon --stop --pidfile /var/run/vdrrip-qh.pid \
	--user ${VDRRIP_USER} /usr/bin/vdrrip-qh
	eend $? "Couldn't stop vdrrip-qh."
}