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):
|
class DhcpService(UtilService):
|
||||||
name = "DHCP"
|
name = "DHCP"
|
||||||
configs = ("/etc/dhcp/dhcpd.conf",)
|
configs = ("/etc/dhcp/dhcpd.conf",)
|
||||||
dirs = ("/etc/dhcp",)
|
dirs = ("/etc/dhcp","/var/lib/dhcp")
|
||||||
startup = ("dhcpd",)
|
startup = ("touch /var/lib/dhcp/dhcpd.leases","dhcpd")
|
||||||
shutdown = ("killall dhcpd",)
|
shutdown = ("killall dhcpd",)
|
||||||
validate = ("pidof dhcpd",)
|
validate = ("pidof dhcpd",)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def generate_config(cls, node, filename):
|
def generate_config(cls, node, filename):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue