mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixed #2959 handle new -X/-x settings when the respective messages appear
This commit is contained in:
parent
ec1a00f879
commit
20a8bb115a
6 changed files with 132 additions and 21 deletions
|
|
@ -1,6 +1,8 @@
|
|||
require "lua_utils"
|
||||
local configuration_utils = require "configuration_utils"
|
||||
local clean_shutdown_key = "ntopng.clean_shutdown"
|
||||
|
||||
|
||||
local recovery_utils = {}
|
||||
|
||||
function recovery_utils.mark_clean_shutdown()
|
||||
|
|
@ -12,6 +14,7 @@ function recovery_utils.unmark_clean_shutdown()
|
|||
-- delete the 'normal termination' key
|
||||
-- that will be inserted back during shutdown
|
||||
ntop.delCache(clean_shutdown_key)
|
||||
configuration_utils.reset()
|
||||
end
|
||||
|
||||
function recovery_utils.check_clean_shutdown()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue