]> git.ipfire.org Git - people/ms/ipfire-3.x.git/commitdiff
dhcp: Add dhclient6 systemd service file
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 May 2015 21:56:49 +0000 (21:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 May 2015 21:56:49 +0000 (21:56 +0000)
dhcp/dhcp.nm
dhcp/systemd/dhclient6@.service [new file with mode: 0644]

index 1d15f651f2cdfc2cb590cb2cdd7f816ff24a53de..91021cbad3ccc14f59f7b3a1f95c8573ffcf91da 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = dhcp
 version    = 4.2.5
-release    = 1
+release    = 2
 
 groups     = Networking/Daemons
 url        = http://isc.org/products/DHCP/
diff --git a/dhcp/systemd/dhclient6@.service b/dhcp/systemd/dhclient6@.service
new file mode 100644 (file)
index 0000000..34f20a2
--- /dev/null
@@ -0,0 +1,19 @@
+[Unit]
+Description=DHCP client daemon for IPv6 on %I
+
+[Service]
+Restart=on-failure
+ExecStartPre=/usr/lib/network/dhclient-helper start %I ipv6
+ExecStart=/usr/sbin/dhclient -d %I -6 -P -N \
+       -cf /run/network/dhclient/%I/dhclient6.conf \
+       -lf /var/lib/dhclient/dhclient6-%I.leases \
+       -pf /run/network/dhclient/%I/dhclient6.pid
+ExecStop=/usr/lib/network/dhclient-helper stop %I ipv6
+
+# This could be used if you want to release a lease.
+#ExecStop=/usr/sbin/dhclient -d -r %I -6 \
+#      -cf /run/network/dhclient/%I/dhclient6.conf \
+#      -lf /var/lib/dhclient/dhclient6-%I.leases \
+#      -pf /run/network/dhclient/%I/dhclient6.pid
+
+UtmpIdentifier=%I