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