Implemented -d (daemonize) option.

This commit is contained in:
Gunnar Beutner 2012-07-10 16:02:45 +02:00
parent 1896ed356f
commit 97b5c70eea
1 changed files with 3 additions and 0 deletions

View 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);