From 7e1add815bd6c701d7d97166925bbbb2fb59058c Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 2 Apr 2012 13:45:27 +0200 Subject: [PATCH] Use config filename from command line arguments. --- icinga/icingaapplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();