summaryrefslogtreecommitdiff
path: root/src/systemd/dhcp6c@.service
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-11-12 16:26:46 +0200
committerGitHub <noreply@github.com>2026-11-12 16:26:46 +0200
commit1bf2f22cce88ab0be454c6b8cb3ff286e150d63e (patch)
treefb24271eb2a997a17dcd30fb54e013606c7e4136 /src/systemd/dhcp6c@.service
parentf46c01ccdc9075602546873c4d1bbdaea8df32eb (diff)
parenta4110d7d50eddc433da2d0d08a092585f5fe6ee5 (diff)
downloadvyos-1x-1bf2f22cce88ab0be454c6b8cb3ff286e150d63e.tar.gz
vyos-1x-1bf2f22cce88ab0be454c6b8cb3ff286e150d63e.zip
Merge pull request #5637 from c-po/T6301-dhcpv6-client-release-timeout
dhcpv6-client: T6301: do not block commits on an unanswered Release
Diffstat (limited to 'src/systemd/dhcp6c@.service')
-rw-r--r--src/systemd/dhcp6c@.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/dhcp6c@.service b/src/systemd/dhcp6c@.service
index f634bd944..b991ac345 100644
--- a/src/systemd/dhcp6c@.service
+++ b/src/systemd/dhcp6c@.service
@@ -10,6 +10,10 @@ WorkingDirectory=/run/dhcp6c
EnvironmentFile=-/run/dhcp6c/dhcp6c.%i.options
PIDFile=/run/dhcp6c/dhcp6c.%i.pid
ExecStart=/usr/sbin/dhcp6c $DHCP6C_OPTS
+# T6301: dhcp6c removes all leases at once on SIGTERM, but then waits ~30s for
+# a Reply to its Release. Do not block commits on a server that never answers.
+ExecStop=/bin/sh -c 'kill -TERM ${MAINPID}; timeout 5 tail -s 0.1 --pid=${MAINPID} -f /dev/null || kill -KILL ${MAINPID}'
+SuccessExitStatus=KILL
Restart=always
RestartPreventExitStatus=
RestartSec=10