summarylogtreecommitdiffstats
path: root/tvheadend.service
diff options
context:
space:
mode:
authorDan Ziemba2015-08-10 17:08:32 -0400
committerDan Ziemba2015-08-10 17:08:32 -0400
commit2d4cd50751b8afd828e05eff783aa382de4f543f (patch)
treea15120954ecc588621a0e0757d5602719f230284 /tvheadend.service
downloadaur-2d4cd50751b8afd828e05eff783aa382de4f543f.tar.gz
Copied over from aur3 with some updates
Diffstat (limited to 'tvheadend.service')
-rw-r--r--tvheadend.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/tvheadend.service b/tvheadend.service
new file mode 100644
index 000000000000..5754f27d20a0
--- /dev/null
+++ b/tvheadend.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=tvheadend
+After=tmp.mount network.target
+
+[Service]
+Type=forking
+PIDFile=/run/tvheadend.pid
+ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u hts -g video
+ExecStop=/usr/bin/rm /run/tvheadend.pid
+Restart=always
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target