summarylogtreecommitdiffstats
path: root/mythbackend.service
diff options
context:
space:
mode:
Diffstat (limited to 'mythbackend.service')
-rw-r--r--mythbackend.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/mythbackend.service b/mythbackend.service
new file mode 100644
index 000000000000..2adbc3d07d2b
--- /dev/null
+++ b/mythbackend.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=MythTV Backend
+Wants=network-online.target
+After=network.target mysqld.service
+
+[Service]
+Type=simple
+Environment=HOME=/var/lib/mythtv
+User=mythtv
+ExecStart=/usr/bin/mythbackend --logpath /var/log/mythtv
+ExecStop=/usr/bin/mythshutdown --setscheduledwakeup
+#ExecStop=/usr/bin/mythshutdown --shutdown
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target