ntopng/scripts/callbacks/boot.lua
Luca 1304799f1f Added boot.lua script that is executed at boot
- before ntopng switches from superuser to nobody
- before networking is initialized

The idea behind this script is to execute startup actions before
ntopng is really started, and while we're still superuser
2017-09-04 17:06:37 +02:00

16 lines
350 B
Lua

--
-- (C) 2013-17 - ntop.org
--
--
-- This script is executed once at boot
-- * BEFORE * network interfaces are setup
-- * BEFORE * switching to nobody
--
-- ** PLEASE PAY ATTENTION TO WHAT YOU EXECUTE ON THIS FILE **
--
dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
-- Nothing to do so far