fix DHCP server service to work under Ubuntu 18.04
This commit is contained in:
parent
b844f647e3
commit
853ae94d52
1 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in a new issue