summaryrefslogtreecommitdiff
path: root/src/systemd/dhclient@.service
blob: 5e185908b85ef07bb6596104eec51ebfb76028b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[Unit]
Description=DHCP client on %i (IPv4)
Documentation=man:dhclient(8)
RequiresMountsFor=/run
ConditionPathExists=/run/dhclient/%i.conf
ConditionPathExists=/run/dhclient/%i.options
After=vyos-router.service

[Service]
WorkingDirectory=/run/dhclient
Type=simple
EnvironmentFile=-/run/dhclient/%i.options
PIDFile=/run/dhclient/%i.pid
ExecStart=/sbin/dhclient -4 $DHCLIENT_OPTS
ExecStop=/sbin/dhclient -4 $DHCLIENT_OPTS -r
Restart=always

[Install]
WantedBy=multi-user.target