mirror of
https://github.com/safing/portbase
synced 2025-04-17 07:59:09 +00:00
Add option to disable module management
This commit is contained in:
parent
52a2a1f673
commit
ddf230b33e
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ func EnableModuleManagement(changeNotifyFn func(*Module)) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// DisableModuleManagement disables module management and returns the module
|
||||
// system to the default start/stop behavior.
|
||||
func DisableModuleManagement() {
|
||||
moduleMgmtEnabled.UnSet()
|
||||
}
|
||||
|
||||
func (m *Module) notifyOfChange() {
|
||||
if moduleMgmtEnabled.IsSet() && modulesChangeNotifyFn != nil {
|
||||
m.StartWorker("notify of change", func(ctx context.Context) error {
|
||||
|
|
Loading…
Add table
Reference in a new issue