Minor update
This commit is contained in:
12
main.go
12
main.go
@ -34,6 +34,12 @@ func main() {
|
|||||||
log.Println("Shutting down")
|
log.Println("Shutting down")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func start(cfg *config.Config) {
|
||||||
|
go controller.Handle(cfg.Security, cfg.Web, cfg.Metrics)
|
||||||
|
watchdog.Monitor(cfg)
|
||||||
|
go listenToConfigurationFileChanges(cfg)
|
||||||
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() {
|
||||||
watchdog.Shutdown()
|
watchdog.Shutdown()
|
||||||
controller.Shutdown()
|
controller.Shutdown()
|
||||||
@ -46,12 +52,6 @@ func save() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func start(cfg *config.Config) {
|
|
||||||
go controller.Handle(cfg.Security, cfg.Web, cfg.Metrics)
|
|
||||||
watchdog.Monitor(cfg)
|
|
||||||
go listenToConfigurationFileChanges(cfg)
|
|
||||||
}
|
|
||||||
|
|
||||||
func loadConfiguration() (cfg *config.Config, err error) {
|
func loadConfiguration() (cfg *config.Config, err error) {
|
||||||
customConfigFile := os.Getenv("GATUS_CONFIG_FILE")
|
customConfigFile := os.Getenv("GATUS_CONFIG_FILE")
|
||||||
if len(customConfigFile) > 0 {
|
if len(customConfigFile) > 0 {
|
||||||
|
Reference in New Issue
Block a user