subscribeXAppNotifications(chXAppSubscriptions)
- createConf([]byte{})
- startVesagent(chVesagent)
-
runVesmgr(chVesagent, chSupervision, chXAppNotifications, chXAppSubscriptions)
}
logger.Info("vesmgr main loop ready")
mystate := normalState
var xappStatus []byte
+ var err error
for {
select {
case supervision := <-chSupervision:
* the situation is fixed when the next
* xapp notif comes
*/
- var err error
xappStatus, err = queryConf()
if err == nil {
killVespa(vesagent.process)
logger.Error("Failed to make xApp subscriptions, vesmgr exiting: %s", isSubscribed.err)
os.Exit(1)
}
+ xappStatus, err = queryConf()
+ if err == nil {
+ createConf(xappStatus)
+ startVesagent(chVesagent)
+ }
}
}
}