mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Changed nedge dhcp service management
This commit is contained in:
parent
bc5757be0c
commit
32b5ad3942
2 changed files with 55 additions and 2 deletions
|
|
@ -971,10 +971,12 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function system_config:_enableDisableDhcpService()
|
||||
local dhcp_service_utils = require "dhcp_service_utils"
|
||||
|
||||
if self:isDhcpServerEnabled() then
|
||||
sys_utils.enableService("isc-dhcp-server")
|
||||
dhcp_service_utils.startDHCPService()
|
||||
else
|
||||
sys_utils.disableService("isc-dhcp-server")
|
||||
dhcp_service_utils.stopDHCPService()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue