summaryrefslogtreecommitdiffstats
path: root/main/tvheadend/tvheadend.initd
blob: c244dd63ffd3ded6af3057c9661bd704ac79fb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/runscript
depend() {
        need net
}

start() {
        ebegin "Starting tvheadend" 
        start-stop-daemon --start \
                --user ${TVHUSER} \
                --exec ${TVHBIN} -- -C -f -c \
		${TVHCONF}
        eend $?
}

stop() {
        ebegin "Stopping tvheadend" 
        start-stop-daemon --stop --quiet --name tvheadend --signal 2
        eend $?
}