mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
connman: adjust connman.service to allow clean shutdown
This commit is contained in:
parent
356f21bfa3
commit
9d77b4a71c
@ -1,8 +1,9 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Connection service
|
Description=Connection service
|
||||||
Requires=dbus.socket
|
DefaultDependencies=false
|
||||||
After=dbus.socket
|
Conflicts=shutdown.target
|
||||||
Before=network.target
|
Before=network.target multi-user.target shutdown.target
|
||||||
|
After=dbus.service
|
||||||
Wants=network.target
|
Wants=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@ -15,8 +16,6 @@ ExecStartPre=-/bin/sh -c "cat /storage/.cache/hostname > /proc/sys/kernel/hostna
|
|||||||
ExecStartPre=-/bin/sh -c "cat /storage/.config/hosts.conf > /etc/hosts"
|
ExecStartPre=-/bin/sh -c "cat /storage/.config/hosts.conf > /etc/hosts"
|
||||||
ExecStartPre=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
|
ExecStartPre=/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
|
||||||
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
|
ExecStart=/bin/sh -c ". /usr/lib/connman/connman-setup; exec /usr/sbin/connmand -nr $CONNMAN_MAIN $CONNMAN_DEBUG"
|
||||||
# send SIGKILL on stop to keep ip configuration
|
|
||||||
KillSignal=SIGKILL
|
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
StartLimitInterval=0
|
StartLimitInterval=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user