mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-26 07:04:37 +02:00
parent
f47f7fb8c5
commit
5f54406057
@ -21,13 +21,17 @@
|
|||||||
#include "base/process.h"
|
#include "base/process.h"
|
||||||
#include "base/array.h"
|
#include "base/array.h"
|
||||||
#include "base/objectlock.h"
|
#include "base/objectlock.h"
|
||||||
|
#include "base/logger_fwd.h"
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
#include <boost/algorithm/string/join.hpp>
|
||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
Process::Process(const std::vector<String>& arguments, const Dictionary::Ptr& extraEnvironment)
|
Process::Process(const std::vector<String>& arguments, const Dictionary::Ptr& extraEnvironment)
|
||||||
: m_Arguments(arguments), m_ExtraEnvironment(extraEnvironment), m_Timeout(600)
|
: m_Arguments(arguments), m_ExtraEnvironment(extraEnvironment), m_Timeout(600)
|
||||||
{ }
|
{
|
||||||
|
Log(LogDebug, "base", "Running command '" + boost::algorithm::join(arguments, " ") + "'.");
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<String> Process::SplitCommand(const Value& command)
|
std::vector<String> Process::SplitCommand(const Value& command)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user