fix DHCP server service to work under Ubuntu 18.04

This commit is contained in:
Jeff Ahrenholz 2018-10-10 10:11:32 -07:00
parent b844f647e3
commit 853ae94d52

View file

@ -232,11 +232,11 @@ UseDNS no
class DhcpService(UtilService):
name = "DHCP"
configs = ("/etc/dhcp/dhcpd.conf",)
dirs = ("/etc/dhcp",)
startup = ("dhcpd",)
dirs = ("/etc/dhcp","/var/lib/dhcp")
startup = ("touch /var/lib/dhcp/dhcpd.leases","dhcpd")
shutdown = ("killall dhcpd",)
validate = ("pidof dhcpd",)
@classmethod
def generate_config(cls, node, filename):
"""