summaryrefslogtreecommitdiff
path: root/src/systemd/dhclient@.service
diff options
context:
space:
mode:
authorkumvijaya <kuvmijaya@gmail.com>2024-09-26 11:31:07 +0530
committerkumvijaya <kuvmijaya@gmail.com>2024-09-26 11:31:07 +0530
commita950059053f7394acfb453cc0d8194aa3dc721fa (patch)
treeeb0acf278f649b5d1417e18e34d728efcd16e745 /src/systemd/dhclient@.service
parentf0815f3e9b212f424f5adb0c572a71119ad4a8a0 (diff)
downloadvyos-workflow-test-temp-a950059053f7394acfb453cc0d8194aa3dc721fa.tar.gz
vyos-workflow-test-temp-a950059053f7394acfb453cc0d8194aa3dc721fa.zip
T6732: added same as vyos 1x
Diffstat (limited to 'src/systemd/dhclient@.service')
-rw-r--r--src/systemd/dhclient@.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/systemd/dhclient@.service b/src/systemd/dhclient@.service
new file mode 100644
index 0000000..d430d88
--- /dev/null
+++ b/src/systemd/dhclient@.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=DHCP client on %i
+Documentation=man:dhclient(8)
+StartLimitIntervalSec=0
+After=vyos-router.service
+ConditionPathExists=/run/dhclient/dhclient_%i.conf
+
+[Service]
+Type=exec
+ExecStart=/sbin/dhclient -4 -d $DHCLIENT_OPTS
+ExecStop=/sbin/dhclient -4 -r $DHCLIENT_OPTS
+Restart=always
+RestartPreventExitStatus=
+RestartSec=10
+RuntimeDirectoryPreserve=yes
+TimeoutStopSec=20
+SendSIGKILL=true
+FinalKillSignal=SIGABRT
+
+[Install]
+WantedBy=multi-user.target