mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
connman: adjust connman.service to allow clean shutdown
This commit is contained in:
parent
356f21bfa3
commit
9d77b4a71c
@ -1,8 +1,9 @@
|
||||
[Unit]
|
||||
Description=Connection service
|
||||
Requires=dbus.socket
|
||||
After=dbus.socket
|
||||
Before=network.target
|
||||
DefaultDependencies=false
|
||||
Conflicts=shutdown.target
|
||||
Before=network.target multi-user.target shutdown.target
|
||||
After=dbus.service
|
||||
Wants=network.target
|
||||
|
||||
[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=/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"
|
||||
# send SIGKILL on stop to keep ip configuration
|
||||
KillSignal=SIGKILL
|
||||
StandardOutput=null
|
||||
RestartSec=2
|
||||
StartLimitInterval=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user