Use config filename from command line arguments.

This commit is contained in:
Gunnar Beutner 2012-04-02 13:45:27 +02:00
parent a8b83c2d35
commit 7e1add815b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ int IcingaApplication::Main(const vector<string>& args)
ConfigObject::RefType fileComponentConfig = new_object<ConfigObject>(); ConfigObject::RefType fileComponentConfig = new_object<ConfigObject>();
fileComponentConfig->SetName("configfilecomponent"); fileComponentConfig->SetName("configfilecomponent");
fileComponentConfig->SetType("component"); fileComponentConfig->SetType("component");
fileComponentConfig->SetProperty("configFilename", "icinga.conf"); fileComponentConfig->SetProperty("configFilename", args[1]);
GetConfigHive()->AddObject(fileComponentConfig); GetConfigHive()->AddObject(fileComponentConfig);
RunEventLoop(); RunEventLoop();