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:
Thomas Petazzoni 2015-12-24 14:48:28 +01:00
parent c4486e8c94
commit 6f81baaf47
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
INTERFACES=""
# 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
test -f /usr/sbin/dhcpd || exit 0

View File

@ -7,7 +7,7 @@ Type=forking
PIDFile=/run/dhcpd.pid
ExecStart=/usr/sbin/dhcpd -q -pf /run/dhcpd.pid $INTERFACES
KillSignal=SIGINT
EnvironmentFile=-/etc/default/dhcpd.conf
EnvironmentFile=-/etc/default/dhcpd
[Install]
WantedBy=multi-user.target