]> granicus.if.org Git - icinga2/commitdiff
Always load cibsync component.
authorGunnar Beutner <gunnar@beutner.name>
Tue, 24 Jul 2012 11:26:56 +0000 (13:26 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 24 Jul 2012 11:26:56 +0000 (13:26 +0200)
icinga/icingaapplication.cpp

index 2ade8c2d2c64800c58865046fc34d04e3ef14678..fbe99991ee27fde5c1d6016ab1bd03dc8f633442 100644 (file)
@@ -150,6 +150,13 @@ int IcingaApplication::Main(const vector<string>& args)
        componentObjects->OnObjectRemoved.connect(boost::bind(&IcingaApplication::DeletedComponentHandler, this, _2));
        componentObjects->Start();
 
+       /* load cibsync config component */
+       ConfigItemBuilder::Ptr cibsyncComponentConfig = boost::make_shared<ConfigItemBuilder>();
+       cibsyncComponentConfig->SetType("component");
+       cibsyncComponentConfig->SetName("cibsync");
+       cibsyncComponentConfig->SetLocal(true);
+       cibsyncComponentConfig->Compile()->Commit();
+
        /* load convenience config component */
        ConfigItemBuilder::Ptr convenienceComponentConfig = boost::make_shared<ConfigItemBuilder>();
        convenienceComponentConfig->SetType("component");