mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Apply ReloadTimeout for 2.11
This commit is contained in:
parent
b3b7abdfe8
commit
af8624dcf1
@ -8,6 +8,7 @@
|
|||||||
#include "base/configtype.hpp"
|
#include "base/configtype.hpp"
|
||||||
#include "base/logger.hpp"
|
#include "base/logger.hpp"
|
||||||
#include "base/convert.hpp"
|
#include "base/convert.hpp"
|
||||||
|
#include "base/application.hpp"
|
||||||
#include "base/exception.hpp"
|
#include "base/exception.hpp"
|
||||||
#include "base/utility.hpp"
|
#include "base/utility.hpp"
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@ -564,7 +565,7 @@ void ApiListener::AsyncTryActivateZonesStage(const std::vector<String>& relative
|
|||||||
args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir());
|
args->Add("System.ZonesStageVarDir=" + GetApiZonesStageDir());
|
||||||
|
|
||||||
Process::Ptr process = new Process(Process::PrepareCommand(args));
|
Process::Ptr process = new Process(Process::PrepareCommand(args));
|
||||||
process->SetTimeout(300);
|
process->SetTimeout(Application::GetReloadTimeout());
|
||||||
process->Run(std::bind(&TryActivateZonesStageCallback, _1, relativePaths));
|
process->Run(std::bind(&TryActivateZonesStageCallback, _1, relativePaths));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user