// acceptSignals registers for OS signals func acceptSignals() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGHUP) go func() { for sig := range c { switch sig { case syscall.SIGHUP: log.Debugf("Received SIGHUP. Reloading configuration") config.Reload() } } }() }
// acceptSignals registers for OS signals func acceptSignals() { c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGHUP) go func() { for sig := range c { switch sig { case syscall.SIGHUP: log.Debugf("Received SIGHUP. Reloading configuration") config.Reload() inst.AuditOperation("reload-configuration", nil, "Triggered via SIGHUP") } } }() }