mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
kodi: use connmand-wait-online and rework service dependencies
This commit is contained in:
parent
476db3cefd
commit
0ac03dde6c
@ -1,7 +1,7 @@
|
||||
[Unit]
|
||||
Description=Kodi user autostart script
|
||||
Before=kodi.service
|
||||
After=graphical.target
|
||||
After=network-online.target graphical.target
|
||||
ConditionPathExists=/storage/.config/autostart.sh
|
||||
|
||||
[Service]
|
||||
|
@ -1,16 +1,19 @@
|
||||
[Unit]
|
||||
Description=Wait on network
|
||||
Requisite=connman.service
|
||||
After=connman.service
|
||||
Before=kodi-autostart.service kodi.service
|
||||
Before=network-online.target
|
||||
DefaultDependencies=no
|
||||
Conflicts=shutdown.target
|
||||
ConditionPathExists=/storage/.cache/openelec/network_wait
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/storage/.cache/openelec/network_wait
|
||||
ExecStartPre=/bin/sh -c 'echo "waiting on Network to come online ... (max. $WAIT_NETWORK_TIME sec.)"'
|
||||
ExecStart=/usr/bin/cm-online ${WAIT_NETWORK_TIME}
|
||||
ExecStart=/usr/sbin/connmand-wait-online --timeout=${WAIT_NETWORK_TIME}
|
||||
StandardOutput=tty
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=kodi.service
|
||||
WantedBy=network-online.target
|
||||
|
@ -1,7 +1,8 @@
|
||||
[Unit]
|
||||
Description=Kodi Media Center
|
||||
After=graphical.target
|
||||
After=network-online.target graphical.target
|
||||
Requires=graphical.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Environment=DISPLAY=:0.0
|
||||
|
@ -1,7 +1,8 @@
|
||||
[Unit]
|
||||
Description=Kodi Mediacenter Interface
|
||||
Requires=multi-user.target graphical.target
|
||||
After=graphical.target
|
||||
Requires=multi-user.target graphical.target network-online.target
|
||||
After=network-online.target graphical.target
|
||||
Wants=network-online.target
|
||||
Conflicts=rescue.target
|
||||
AllowIsolate=yes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user