From: Gunnar Beutner Date: Mon, 2 Apr 2012 11:45:27 +0000 (+0200) Subject: Use config filename from command line arguments. X-Git-Tag: v0.0.1~659 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e1add815bd6c701d7d97166925bbbb2fb59058c;p=icinga2 Use config filename from command line arguments. --- 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();