mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-12-19 05:36:17 +01:00
Do startup only if configured
This commit is contained in:
@@ -218,7 +218,7 @@ func mainFunc() int {
|
||||
}
|
||||
|
||||
startupConf := ccconf.GetPackageConfig("startup")
|
||||
if len(collectorConf) > 0 {
|
||||
if startupConf != nil && len(startupConf) > 0 {
|
||||
err := start.CCStartup(startupConf)
|
||||
if err != nil {
|
||||
cclog.Errorf("Sending startup topology failed: %s", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user