bundles/{radvd,wide-dhcp6c}: improve handling of non-properly terminated ip-down scripts
This commit is contained in:
parent
644eb37b82
commit
a14580944b
3 changed files with 14 additions and 2 deletions
|
@ -7,6 +7,8 @@ Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
ExecStart=/usr/bin/pon
|
ExecStart=/usr/bin/pon
|
||||||
ExecStop=/usr/bin/poff -a
|
ExecStop=/usr/bin/poff -a
|
||||||
|
# This is important, because otherwise systemd will kill the ip-down scripts!
|
||||||
|
KillMode=none
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if systemctl is-active wide-dhcpv6-client;
|
||||||
|
then
|
||||||
|
systemctl restart radvd
|
||||||
|
else
|
||||||
systemctl start radvd
|
systemctl start radvd
|
||||||
|
fi
|
||||||
|
|
|
@ -8,4 +8,9 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if systemctl is-active wide-dhcpv6-client;
|
||||||
|
then
|
||||||
|
systemctl restart wide-dhcpv6-client
|
||||||
|
else
|
||||||
systemctl start wide-dhcpv6-client
|
systemctl start wide-dhcpv6-client
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue