]>
Commit | Line | Data |
---|---|---|
43bdff81 MT |
1 | [Unit] |
2 | Description=DHCP client daemon for IPv4 on %I | |
3 | BindTo=dev-%I.device | |
4 | After=dev-%I.device | |
5 | ||
6 | [Service] | |
7 | Restart=on-failure | |
8 | ExecStartPre=/usr/lib/network/dhclient-helper start %I ipv4 | |
9 | ExecStart=/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 | |
13 | ExecStop=/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 | ||
21 | UtmpIdentifier=%I |