mirror of https://github.com/Icinga/icinga2.git
Use config filename from command line arguments.
This commit is contained in:
parent
a8b83c2d35
commit
7e1add815b
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue