]> granicus.if.org Git - icinga2/commitdiff
Use config filename from command line arguments.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 11:45:27 +0000 (13:45 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 11:46:10 +0000 (13:46 +0200)
icinga/icingaapplication.cpp

index f9ac60414ec84a9e26633a9a41fb7cdf8a3404d8..efbe818cb329d6de77f475b11831055ba04f29a8 100644 (file)
@@ -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();