]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - dhcp/systemd/dhclient4@.service
dhcp: Update the systemd unit file for dhclient.
[people/ms/ipfire-3.x.git] / dhcp / systemd / dhclient4@.service
CommitLineData
43bdff81
MT
1[Unit]
2Description=DHCP client daemon for IPv4 on %I
3BindTo=dev-%I.device
4After=dev-%I.device
5
6[Service]
7Restart=on-failure
8ExecStartPre=/usr/lib/network/dhclient-helper start %I ipv4
9ExecStart=/usr/sbin/dhclient -d %I -4 \
10 -cf /run/network/dhclient/%I/dhclient4.conf \
11 -lf /var/lib/dhclient/dhclient-%I.leases \
12 -pf /run/network/dhclient/%I/dhclient4.pid
13ExecStop=/usr/lib/network/dhclient-helper stop %I ipv4
14
15# This could be used if you want to release a lease.
16#ExecStop=/usr/sbin/dhclient -d -r %I -4 \
17# -cf /run/network/dhclient/%I/dhclient4.conf \
18# -lf /var/lib/dhclient/dhclient-%I.leases \
19# -pf /run/network/dhclient/%I/dhclient4.pid
20
21UtmpIdentifier=%I