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