Fixed #2959 handle new -X/-x settings when the respective messages appear

This commit is contained in:
matteo 2020-12-09 11:50:26 +01:00
parent ec1a00f879
commit 20a8bb115a
6 changed files with 132 additions and 21 deletions

View file

@ -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()