From 3e7b8515cafb6f6e015c765021ecd38203d87a4d Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 28 Apr 2020 20:05:20 +0200 Subject: dhclient6: T2393: T2394: migrate from SysVinit to systemd --- src/systemd/dhclient6@.service | 18 ++++++++++++++++++ src/systemd/dhclient@.service | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 src/systemd/dhclient6@.service (limited to 'src') 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 index 5e185908b..c6f1e4be1 100644 --- a/src/systemd/dhclient@.service +++ b/src/systemd/dhclient@.service @@ -1,5 +1,5 @@ [Unit] -Description=DHCP client on %i (IPv4) +Description=DHCP client on %i Documentation=man:dhclient(8) RequiresMountsFor=/run ConditionPathExists=/run/dhclient/%i.conf @@ -8,7 +8,7 @@ After=vyos-router.service [Service] WorkingDirectory=/run/dhclient -Type=simple +Type=forking EnvironmentFile=-/run/dhclient/%i.options PIDFile=/run/dhclient/%i.pid ExecStart=/sbin/dhclient -4 $DHCLIENT_OPTS -- cgit v1.2.3