File kodi.service of Package kodi

22
 
1
[Unit]
2
Description = Kodi Media Center (Started with xinit)
3
After = systemd-user-sessions.service network.target sound.target
4
# if you need the MySQL DB backend, use this block instead of the previous
5
# After = systemd-user-sessions.service network.target sound.target mysql.service
6
# Wants = mysql.service
7
Conflicts=getty@tty7.service
8
9
[Service]
10
#User = kodi
11
#Group = kodi
12
#PAMName=login # you might want to try this one, did not work on all systems
13
Type = simple
14
TTYPath=/dev/tty7
15
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone
16
Restart = on-abort
17
RestartSec = 5
18
StandardInput = tty
19
20
[Install]
21
WantedBy = multi-user.target
22