mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
kodi: add shutdown hook to autostart
This commit is contained in:
parent
a5fc6876d8
commit
7ce98a88c8
@ -2,13 +2,14 @@
|
|||||||
Description=Kodi user autostart script
|
Description=Kodi user autostart script
|
||||||
Before=kodi.service
|
Before=kodi.service
|
||||||
After=network-online.target graphical.target
|
After=network-online.target graphical.target
|
||||||
ConditionPathExists=/storage/.config/autostart.sh
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
Environment=HOME=/storage
|
Environment=HOME=/storage
|
||||||
ExecStart=-/bin/sh -c ". /etc/profile; exec /bin/sh /storage/.config/autostart.sh"
|
ExecStart=-/bin/sh -c ". /etc/profile; test -f /storage/.config/autostart.sh && exec /bin/sh /storage/.config/autostart.sh"
|
||||||
|
ExecStop=-/bin/sh -c ". /etc/profile; test -f /storage/.config/autostop.sh && exec /bin/sh /storage/.config/autostop.sh"
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
TimeoutStopSec=5min
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=kodi.service
|
WantedBy=kodi.service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user