Do startup only if configured

This commit is contained in:
Thomas Roehl
2025-12-18 18:12:03 +01:00
parent 02dc524568
commit 5fade3189f

View File

@@ -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())