retroarch-standalone-service/init/kodi-x11.service

26 lines
940 B
SYSTEMD
Raw Normal View History

2014-11-05 21:24:29 +01:00
[Unit]
2019-04-29 16:38:00 +02:00
Description=Kodi standalone (X11)
After=remote-fs.target network-online.target nss-lookup.target sound.target bluetooth.target polkit.service upower.service mysqld.service
Wants=network-online.target polkit.service upower.service
2017-03-04 14:46:48 +01:00
Conflicts=getty@tty1.service
2014-11-05 21:24:29 +01:00
[Service]
2016-03-28 15:41:37 +02:00
User=kodi
Group=kodi
EnvironmentFile=-/etc/conf.d/kodi-standalone
2017-03-04 14:46:48 +01:00
TTYPath=/dev/tty1
Environment=WINDOWING=x11
ExecStart=/usr/bin/xinit /usr/bin/kodi-standalone -- :0 -quiet -nolisten tcp vt1
ExecStop=/usr/bin/killall --user kodi --exact --wait kodi-x11
2016-03-28 15:41:37 +02:00
Restart=on-abort
StandardInput=tty
StandardOutput=journal
# Without this we will wait the default 90s for this service to go down
# due to xinit staying alive. I don't know of a better way to do this
# without several service files one for the xserver and another for kodi.
# If this bothers you, run kodi-gbm instead which doesn't suffer from this.
TimeoutStopSec=10s
2014-11-05 21:24:29 +01:00
[Install]
Alias=display-manager.service