]> granicus.if.org Git - icinga2/commitdiff
Implemented -d (daemonize) option.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 10 Jul 2012 14:02:45 +0000 (16:02 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 10 Jul 2012 14:02:45 +0000 (16:02 +0200)
icinga/icingaapplication.cpp

index 7be91331020b001f54682f0aba165a324a510736..f240651aafe7cb324afd04aa4484924ce253dfff 100644 (file)
@@ -87,6 +87,9 @@ int IcingaApplication::Main(const vector<string>& args)
 
                                it++;
 
+                               continue;
+                       } else if (arg == "-d") {
+                               daemonize = true;
                                continue;
                        } else {
                                throw invalid_argument("Unknown option: " + arg);