connman: adjust connman.service to allow clean shutdown

This commit is contained in:
Lukas Rusak 2016-02-03 11:30:00 +01:00
parent 356f21bfa3
commit 9d77b4a71c

View File

@ -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