summaryrefslogtreecommitdiff
path: root/src/systemd/dhcp6c@.service
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-05 09:02:59 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-05 09:28:35 +0200
commit8a15595e1ac3d9e3e15f40f8b2256768f8d71f0c (patch)
tree2ecb45cd5ab98423ad534c415e2703e09f96c468 /src/systemd/dhcp6c@.service
parent6fbce6b6fe495268f896f95fea1a0837367c664a (diff)
downloadvyos-1x-8a15595e1ac3d9e3e15f40f8b2256768f8d71f0c.tar.gz
vyos-1x-8a15595e1ac3d9e3e15f40f8b2256768f8d71f0c.zip
dhcpv6: T5428: client renewal fails when running inside VRF
Diffstat (limited to 'src/systemd/dhcp6c@.service')
-rw-r--r--src/systemd/dhcp6c@.service12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/systemd/dhcp6c@.service b/src/systemd/dhcp6c@.service
index 495cb7e26..f634bd944 100644
--- a/src/systemd/dhcp6c@.service
+++ b/src/systemd/dhcp6c@.service
@@ -1,19 +1,19 @@
[Unit]
Description=WIDE DHCPv6 client on %i
Documentation=man:dhcp6c(8) man:dhcp6c.conf(5)
-ConditionPathExists=/run/dhcp6c/dhcp6c.%i.conf
-ConditionPathExists=/run/dhcp6c/dhcp6c.%i.options
-After=vyos-router.service
StartLimitIntervalSec=0
+After=vyos-router.service
[Service]
+Type=forking
WorkingDirectory=/run/dhcp6c
EnvironmentFile=-/run/dhcp6c/dhcp6c.%i.options
-Type=forking
PIDFile=/run/dhcp6c/dhcp6c.%i.pid
ExecStart=/usr/sbin/dhcp6c $DHCP6C_OPTS
-Restart=on-failure
-RestartSec=20
+Restart=always
+RestartPreventExitStatus=
+RestartSec=10
+RuntimeDirectoryPreserve=yes
[Install]
WantedBy=multi-user.target