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

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

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