Skip to content

Commit

Permalink
fixed monitor methods initialization
Browse files Browse the repository at this point in the history
When using proc as monitor method, the ProcsEventsMonitor was not
being initialized.
  • Loading branch information
gustavo-iniguez-goya committed Sep 30, 2023
1 parent 0556dc1 commit c8a17d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/procmon/monitor/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func ReconfigureMonitorMethod(newMonitorMethod string) *Error {
}

oldMethod := procmon.GetMonitorMethod()
if oldMethod == "" {
oldMethod = procmon.MethodProc
}
End()
procmon.SetMonitorMethod(newMonitorMethod)
// if the new monitor method fails to start, rollback the change and exit
Expand Down

0 comments on commit c8a17d6

Please sign in to comment.