847b6ec656
Direct call to kodi-xxx in ExecStart= allows direction of kill signal to that rather than to kodi-standalone wrapper. This allows the kill signal to hit the indented executable. As well, using killall in the ExecStop= allows for synchronous stopping and for kodi to do shutdown housekeeping tasks such as saving settings, stopping services (web, zeroconf, etc.) and unloading things.
22 lines
602 B
Desktop File
22 lines
602 B
Desktop File
[Unit]
|
|
Description=Kodi standalone (GBM)
|
|
After=remote-fs.target systemd-user-sessions.service network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service
|
|
Wants=network-online.target polkit.service upower.service
|
|
Conflicts=getty@tty1.service
|
|
|
|
[Service]
|
|
User=kodi
|
|
Group=kodi
|
|
EnvironmentFile=-/etc/conf.d/kodi-standalone
|
|
SupplementaryGroups=input
|
|
PAMName=login
|
|
TTYPath=/dev/tty1
|
|
Environment=WINDOWING=gbm
|
|
ExecStart=/usr/lib/kodi/kodi-gbm --standalone
|
|
Restart=on-abort
|
|
StandardInput=tty
|
|
StandardOutput=journal
|
|
|
|
[Install]
|
|
Alias=display-manager.service
|