mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 20:46:19 +00:00
21 lines
497 B
Lua
21 lines
497 B
Lua
--
|
|
-- (C) 2013-18 - ntop.org
|
|
--
|
|
|
|
--
|
|
-- This script is executed when ntopng shuts down when
|
|
-- network interfaces are setup
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
local prefs_dump_utils = require "prefs_dump_utils"
|
|
require "lua_utils" -- NOTE: required by alert_utils
|
|
require "alert_utils"
|
|
|
|
local now = os.time()
|
|
|
|
notify_ntopng_stop()
|
|
prefs_dump_utils.savePrefsToDisk()
|
|
processAlertNotifications(now, 0, true --[[ force ]])
|