remove unnecessary sleep after kodi has been stopped

This commit is contained in:
Alexander Grothe 2018-01-01 17:36:51 +01:00
parent 34a0a0e36c
commit 7476635066

View File

@ -6,7 +6,7 @@ Type=simple
PassEnvironment=DISPLAY XDG_RUNTIME_DIR DBUS_SESSION_BUS_ADDRESS
ExecStartPre=-/usr/bin/set-kodi-display
ExecStart=/usr/bin/kodi -l /run/lirc/lircd
ExecStop=/bin/bash -c "/usr/bin/kodi-send --action=QUIT; while ps -p $MAINPID -o comm=; 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"
TimeoutStopSec=10
SuccessExitStatus=0 127
Restart=on-failure