blob: 9b56313a8b802d08c60ed19e8310bc26216edb34 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/runscript
depend() {
need net
}
start() {
ebegin "Starting tvheadend"
start-stop-daemon --start \
--exec ${TVHBIN} -- \
-C -f -u ${TVHUSER} \
-c ${TVHCONF}
eend $?
}
stop() {
ebegin "Stopping tvheadend"
start-stop-daemon --stop --quiet \
--retry TERM/30/KILL/5 \
--pidfile /var/run/tvheadend.pid
eend $?
}
|