From: Gunnar Beutner Date: Fri, 13 Apr 2012 11:24:32 +0000 (+0200) Subject: Fixed config file loader. X-Git-Tag: v0.0.1~628 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f7fb9699d4a802a70ace376af32a09bfaaa1efe;p=icinga2 Fixed config file loader. --- diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index 6ea3fa75d..7f421555d 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -54,7 +54,7 @@ int IcingaApplication::Main(const vector& args) connectionCollection->OnObjectRemoved += bind_weak(&IcingaApplication::DeletedRpcConnectionHandler, shared_from_this()); - ConfigObject::Ptr fileComponentConfig = make_shared("component", "configfilecomponent"); + ConfigObject::Ptr fileComponentConfig = make_shared("component", "configfile"); fileComponentConfig->SetProperty("configFilename", args[1]); fileComponentConfig->SetPropertyInteger("replicate", 0); GetConfigHive()->AddObject(fileComponentConfig); @@ -151,4 +151,3 @@ int IcingaApplication::DeletedRpcConnectionHandler(ConfigObjectEventArgs::Ptr ea return 0; } -