mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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>();
|
||||
fileComponentConfig->SetName("configfilecomponent");
|
||||
fileComponentConfig->SetType("component");
|
||||
fileComponentConfig->SetProperty("configFilename", "icinga.conf");
|
||||
fileComponentConfig->SetProperty("configFilename", args[1]);
|
||||
GetConfigHive()->AddObject(fileComponentConfig);
|
||||
|
||||
RunEventLoop();
|
||||
|
Loading…
x
Reference in New Issue
Block a user