dhcp: read /etc/default/dhcpd, not /etc/default/dhcpd.conf
All daemons that read a file from /etc/default/ have it named just after the name of daemon, without any extension. This commit fixes the dhcp package to do the same. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
c4486e8c94
commit
6f81baaf47
@ -8,7 +8,7 @@
|
|||||||
INTERFACES=""
|
INTERFACES=""
|
||||||
|
|
||||||
# Allow a few customizations from a config file
|
# Allow a few customizations from a config file
|
||||||
test -r /etc/default/dhcpd.conf && . /etc/default/dhcpd.conf
|
test -r /etc/default/dhcpd && . /etc/default/dhcpd
|
||||||
|
|
||||||
# Sanity checks
|
# Sanity checks
|
||||||
test -f /usr/sbin/dhcpd || exit 0
|
test -f /usr/sbin/dhcpd || exit 0
|
||||||
|
@ -7,7 +7,7 @@ Type=forking
|
|||||||
PIDFile=/run/dhcpd.pid
|
PIDFile=/run/dhcpd.pid
|
||||||
ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $INTERFACES
|
ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $INTERFACES
|
||||||
KillSignal=SIGINT
|
KillSignal=SIGINT
|
||||||
EnvironmentFile=-/etc/default/dhcpd.conf
|
EnvironmentFile=-/etc/default/dhcpd
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user