[SCM] kodi/master: Use systemd service file recommended on upstream wiki
rbalint at users.alioth.debian.org
rbalint at users.alioth.debian.org
Mon Feb 20 14:42:29 UTC 2017
The following commit has been merged in the master branch:
commit 1dd9757280ff26e61003bffa3bbcdc3c5d9c7344
Author: Balint Reczey <balint at balintreczey.hu>
Date: Mon Feb 20 14:31:15 2017 +0100
Use systemd service file recommended on upstream wiki
diff --git a/debian/kodi.service b/debian/kodi.service
index 467885b..ae27f4c 100644
--- a/debian/kodi.service
+++ b/debian/kodi.service
@@ -1,16 +1,21 @@
[Unit]
-Description=Kodi Open Source Home Theatre
-After=remote-fs.target
-After=syslog.target
+Description=Kodi Media Center
+
+# if you don't need the MySQL DB backend, this should be sufficient
+After=systemd-user-sessions.service network.target sound.target
+
+# if you need the MySQL DB backend, use this block instead of the previous
+# After=systemd-user-sessions.service network.target sound.target mysql.service
+# Wants=mysql.service
[Service]
User=kodi
Group=kodi
Type=simple
-Restart=always
+#PAMName=login # you might want to try this one, did not work on all systems
+ExecStart=/usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7
+Restart=on-abort
RestartSec=5
-KillMode=process
-ExecStart=/usr/bin/xinit /usr/bin/kodi-standalone -- :0
[Install]
WantedBy=multi-user.target
--
kodi packaging
More information about the pkg-multimedia-commits
mailing list