diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index f9ac60414..efbe818cb 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -36,7 +36,7 @@ int IcingaApplication::Main(const vector& args) ConfigObject::RefType fileComponentConfig = new_object(); fileComponentConfig->SetName("configfilecomponent"); fileComponentConfig->SetType("component"); - fileComponentConfig->SetProperty("configFilename", "icinga.conf"); + fileComponentConfig->SetProperty("configFilename", args[1]); GetConfigHive()->AddObject(fileComponentConfig); RunEventLoop();