mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +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
|
||||
for (int i=1; i < Application::GetArgC(); i++) {
|
||||
args->Add(Application::GetArgV()[i]);
|
||||
for (int i = 1; i < Application::GetArgC(); i++) {
|
||||
String argV = Application::GetArgV()[i];
|
||||
|
||||
if (argV == "-d" || argV == "--daemonize")
|
||||
continue;
|
||||
|
||||
args->Add(argV);
|
||||
}
|
||||
|
||||
// add arguments for validation
|
||||
args->Add("--validate");
|
||||
args->Add("--define");
|
||||
|
Loading…
x
Reference in New Issue
Block a user