Merge pull request #203 from coreemu/bugfix/fix-dhcp-service-under-ubuntu1804

fix DHCP server service to work under Ubuntu 18.04
This commit is contained in:
bharnden 2018-10-16 11:26:31 -07:00 committed by GitHub
commit f5da989eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,8 +232,8 @@ 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",)