diff options
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/dhclient6@.service | 18 | ||||
-rw-r--r-- | src/systemd/dhclient@.service | 19 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/systemd/dhclient6@.service b/src/systemd/dhclient6@.service new file mode 100644 index 000000000..d871e7354 --- /dev/null +++ b/src/systemd/dhclient6@.service @@ -0,0 +1,18 @@ +[Unit] +Description=DHCPv6 client on %i +Documentation=man:dhclient(8) +RequiresMountsFor=/run +ConditionPathExists=/run/dhclient6/%i.conf +ConditionPathExists=/run/dhclient6/%i.options +After=vyos-router.service + +[Service] +WorkingDirectory=/run/dhclient6 +Type=exec +EnvironmentFile=-/run/dhclient6/%i.options +PIDFile=/run/dhclient6/%i.pid +ExecStart=/sbin/dhclient -6 $DHCLIENT_OPTS +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/src/systemd/dhclient@.service b/src/systemd/dhclient@.service new file mode 100644 index 000000000..1040ce2b2 --- /dev/null +++ b/src/systemd/dhclient@.service @@ -0,0 +1,19 @@ +[Unit] +Description=DHCP client on %i +Documentation=man:dhclient(8) +RequiresMountsFor=/run +ConditionPathExists=/run/dhclient/%i.conf +ConditionPathExists=/run/dhclient/%i.options +After=vyos-router.service + +[Service] +WorkingDirectory=/run/dhclient +Type=exec +EnvironmentFile=-/run/dhclient/%i.options +PIDFile=/run/dhclient/%i.pid +ExecStart=/sbin/dhclient -4 $DHCLIENT_OPTS +ExecStop=/sbin/dhclient -4 $DHCLIENT_OPTS -r +Restart=always + +[Install] +WantedBy=multi-user.target |