summaryrefslogtreecommitdiff
path: root/media-tv/tvheadend/files/tvheadend.service
diff options
context:
space:
mode:
Diffstat (limited to 'media-tv/tvheadend/files/tvheadend.service')
-rw-r--r--media-tv/tvheadend/files/tvheadend.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/media-tv/tvheadend/files/tvheadend.service b/media-tv/tvheadend/files/tvheadend.service
new file mode 100644
index 000000000000..227faffcb082
--- /dev/null
+++ b/media-tv/tvheadend/files/tvheadend.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=tvheadend
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/tvheadend.pid
+ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -c /etc/tvheadend -u tvheadend -g video
+ExecStop=/usr/bin/rm /run/tvheadend.pid
+Restart=always
+RestartSec=5
+
+[Install]
+WantedBy=multi-user.target