2017-06-20 15:09:15 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Start kodi in user session
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
|
|
|
ExecStartPre=-/usr/bin/set-kodi-display
|
2017-07-28 15:04:36 +02:00
|
|
|
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
|
2018-01-01 17:39:00 +01:00
|
|
|
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while ps -p $MAINPID -o comm=; do sleep .25; done"
|
2017-06-20 15:09:15 +02:00
|
|
|
TimeoutStopSec=10
|
2018-08-10 16:03:57 +02:00
|
|
|
SuccessExitStatus=0 127 SIGKILL
|
2019-02-04 17:57:34 +01:00
|
|
|
Restart=on-failure
|