diff options
Diffstat (limited to 'testing/tvheadend/tvheadend.initd')
-rw-r--r-- | testing/tvheadend/tvheadend.initd | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/testing/tvheadend/tvheadend.initd b/testing/tvheadend/tvheadend.initd new file mode 100644 index 0000000000..6a50b9f3f2 --- /dev/null +++ b/testing/tvheadend/tvheadend.initd @@ -0,0 +1,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 $? +} |