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>
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
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