File kodi-noX.service of Package kodi
[Unit]
Description = Kodi Media Center
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
#PAMName = login # you might want to try this one, did not work on all systems
Type = simple
ExecStart = /usr/bin/kodi-standalone
Restart = on-abort
RestartSec = 5
[Install]
WantedBy = multi-user.target