mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Don't inherit daemonize parameter from parent process
This commit is contained in:
parent
816cae98fa
commit
82178e3b33
@ -220,9 +220,15 @@ void ConfigPackageUtility::AsyncTryActivateStage(const String& packageName, cons
|
|||||||
});
|
});
|
||||||
|
|
||||||
// copy all arguments of parent process
|
// copy all arguments of parent process
|
||||||
for (int i=1; i < Application::GetArgC(); i++) {
|
for (int i = 1; i < Application::GetArgC(); i++) {
|
||||||
args->Add(Application::GetArgV()[i]);
|
String argV = Application::GetArgV()[i];
|
||||||
|
|
||||||
|
if (argV == "-d" || argV == "--daemonize")
|
||||||
|
continue;
|
||||||
|
|
||||||
|
args->Add(argV);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add arguments for validation
|
// add arguments for validation
|
||||||
args->Add("--validate");
|
args->Add("--validate");
|
||||||
args->Add("--define");
|
args->Add("--define");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user