summaryrefslogtreecommitdiff
path: root/src/systemd/dhclient@.service
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-02 22:03:07 +0200
committerChristian Breunig <christian@breunig.cc>2023-08-02 22:03:49 +0200
commit6a100233536f357ab3d45e55b9c0ecb52bd69c47 (patch)
treee5190203de0d28b06a0f25e418fdac4f67181f98 /src/systemd/dhclient@.service
parent0fb28c96e71382c6d1d03ba7ab44a7db1d459cc8 (diff)
downloadvyos-1x-6a100233536f357ab3d45e55b9c0ecb52bd69c47.tar.gz
vyos-1x-6a100233536f357ab3d45e55b9c0ecb52bd69c47.zip
dhclient: T5003: improve VRF bound client startup
When booting a system with DHCP clients running inside a VRF we require multiple restarts - prevent systemd from putting the service into a "failed" state.
Diffstat (limited to 'src/systemd/dhclient@.service')
-rw-r--r--src/systemd/dhclient@.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/dhclient@.service b/src/systemd/dhclient@.service
index 23cd4cfc3..226737f9e 100644
--- a/src/systemd/dhclient@.service
+++ b/src/systemd/dhclient@.service
@@ -3,6 +3,7 @@ Description=DHCP client on %i
Documentation=man:dhclient(8)
ConditionPathExists=/var/lib/dhcp/dhclient_%i.conf
ConditionPathExists=/var/lib/dhcp/dhclient_%i.options
+StartLimitIntervalSec=0
After=vyos-router.service
[Service]
@@ -13,6 +14,9 @@ PIDFile=/var/lib/dhcp/dhclient_%i.pid
ExecStart=/sbin/dhclient -4 $DHCLIENT_OPTS
ExecStop=/sbin/dhclient -4 $DHCLIENT_OPTS -r
Restart=always
+RestartPreventExitStatus=
+RestartSec=10
+RuntimeDirectoryPreserve=yes
TimeoutStopSec=20
SendSIGKILL=true
FinalKillSignal=SIGABRT