]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Include upstart file in debian, rather than traditional init script.
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 17 Sep 2012 16:29:36 +0000 (17:29 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 17 Sep 2012 19:53:47 +0000 (20:53 +0100)
debian/tvheadend.default [new file with mode: 0644]
debian/tvheadend.upstart [new file with mode: 0644]

diff --git a/debian/tvheadend.default b/debian/tvheadend.default
new file mode 100644 (file)
index 0000000..5f8343f
--- /dev/null
@@ -0,0 +1,6 @@
+#
+# Default configuration for tvheadend
+#
+
+ENABLED=1
+DAEMON_ARGS="-f -u hts -g video"
diff --git a/debian/tvheadend.upstart b/debian/tvheadend.upstart
new file mode 100644 (file)
index 0000000..b009772
--- /dev/null
@@ -0,0 +1,22 @@
+# tvheadend - DVB/IPTV streaming server
+#
+# Tvheadend is a TV streaming server for Linux supporting DVB, ATSC, IPTV,
+# and Analog video (V4L) as input sources.
+
+description "Tvheadend DVB/IPTV streaming server"
+author      "Adam Sutton <dev@adamsutton.me.uk>"
+
+start on (local-filesystems and net-device-up and started udev-finish)
+stop  on runlevel [!2345]
+
+expect fork
+respawn
+
+script
+  DAEMON_ARGS="-f -u hts -g video"
+  [ -r /etc/default/tvheadend ] && . /etc/default/tvheadend
+
+  [ "$ENABLED" = "1" ] || exit 0
+
+  exec tvheadend $DAEMON_ARGS
+end script