mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Fixes to dhclient@.service
This commit is contained in:
parent
dd63d088a1
commit
9863cacf80
1 changed files with 6 additions and 3 deletions
|
@ -4,11 +4,14 @@ Wants=network.target
|
||||||
Before=network.target
|
Before=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/sbin/dhclient -pf /run/dhclient@%i/dhclient.pid -d %I
|
ExecStart=/usr/sbin/dhclient -lf /var/lib/dhclient/dhclient.leases -pf /run/dhclient@%i/dhclient.pid -d %I
|
||||||
RuntimeDirectory=dhclient@%i
|
RuntimeDirectory=dhclient@%i
|
||||||
User=isc-dhcp-client
|
User=isc-dhcp-client
|
||||||
ProtectSystem=on
|
ProtectSystem=yes
|
||||||
ProtectHome=on
|
ProtectHome=yes
|
||||||
|
ReadWritePaths=/var/lib/dhclient/
|
||||||
|
RestartSec=2s
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Add table
Reference in a new issue