No more initial status messages = starting does nothing
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Tyler 2022-03-31 01:04:04 -04:00
parent 6c52d1a5b2
commit e06eced768
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,6 @@ func main() {
reloadConfig() reloadConfig()
log.Info("Servers added, checking statuses")
// Start check loop // Start check loop
go servers.checkLoop() go servers.checkLoop()
@ -98,6 +96,8 @@ func main() {
go http.ListenAndServe(viper.GetString("bind"), r) go http.ListenAndServe(viper.GetString("bind"), r)
log.Info("Ready")
c := make(chan os.Signal) c := make(chan os.Signal)
signal.Notify(c, syscall.SIGKILL, syscall.SIGTERM, syscall.SIGHUP) signal.Notify(c, syscall.SIGKILL, syscall.SIGTERM, syscall.SIGHUP)