fix daemon mode
This commit is contained in:
parent
fce7a39f95
commit
d65a7f55f8
7
main.go
7
main.go
|
@ -39,7 +39,7 @@ func main() {
|
|||
app.Init(nil)
|
||||
defer app.Shutdown()
|
||||
|
||||
app.Setup(func() {
|
||||
if app.Setup(func() {
|
||||
|
||||
//load core modules first
|
||||
modules.Register()
|
||||
|
@ -92,8 +92,9 @@ func main() {
|
|||
orm.RegisterSchemaWithIndexName(alerting.Alert{}, "alerting-alerts")
|
||||
orm.RegisterSchemaWithIndexName(alerting.AlertingHistory{}, "alerting-alert-history")
|
||||
alertSrv.GetScheduler().Start()
|
||||
},nil)
|
||||
},nil){
|
||||
app.Run()
|
||||
}
|
||||
|
||||
app.Run()
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue