From 9d821ee1f5e3f008a4d96bfa3d84737ba097fc36 Mon Sep 17 00:00:00 2001 From: Stefanos Mitropoulos Date: Thu, 31 Oct 2024 12:55:15 +0200 Subject: [PATCH] fix: remove signal skip on discoverd --- services/settings/settings.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/services/settings/settings.go b/services/settings/settings.go index ec53c8df..a4ba65f5 100644 --- a/services/settings/settings.go +++ b/services/settings/settings.go @@ -576,18 +576,9 @@ func syncAndSave(jsonObject map[string]interface{}, filename string, force bool, logger.Debug("Sighup: %v\n", ShouldRunSighup) logger.Debug("Executables: %v\n", SighupExecutables) - //Check if network discovery is enabled - isDiscoveryEnabled, err := getSettingsFromJSON(jsonObject, []string{"discovery", "enabled"}) - if err != nil { - logger.Warn("Failed to get discovery status from settings: %v\n", err.Error()) - return output, err - } + if ShouldRunSighup { for _, executable := range SighupExecutables { - if executable == "discoverd" && !(isDiscoveryEnabled.(bool)) { - logger.Info("Discovery is not enabled hence skipping sighup\n") - continue - } _, err := os.Stat("/usr/bin/updateSysdbSignal") if err == nil || !os.IsNotExist(err) { if err := exec.Command("/usr/bin/updateSysdbSignal", "--sighup").Run(); err != nil {