Improve KODI stop detection in kodi.service.j2 template
This commit is contained in:
parent
14d05a742b
commit
b9c56955b4
@ -6,7 +6,7 @@ Type=simple
|
|||||||
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
|
||||||
ExecStartPre=-/usr/bin/set-kodi-display
|
ExecStartPre=-/usr/bin/set-kodi-display
|
||||||
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
|
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
|
||||||
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while /usr/bin/pgrep kodi; do sleep 1; done; sleep 1"
|
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while ps -p $MAINPID -o comm=; do sleep 1; done; sleep 1"
|
||||||
TimeoutStopSec=10
|
TimeoutStopSec=10
|
||||||
SuccessExitStatus=0 127
|
SuccessExitStatus=0 127
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
Loading…
Reference in New Issue
Block a user