26#include <IIpcService.h>
56 explicit Upstart(
const std::shared_ptr<AI_IPC::IIpcService>& ipcService);
60 bool start(
const std::string& name,
61 const std::vector<std::string>& env = std::vector<std::string>(),
62 bool wait =
true)
const;
64 bool restart(
const std::string& name,
65 const std::vector<std::string>& env = std::vector<std::string>(),
66 bool wait =
true)
const;
68 bool stop(
const std::string& name,
69 bool wait =
true)
const;
73 const std::string& name,
74 const std::vector<std::string>& env,
78 const std::shared_ptr<AI_IPC::IIpcService>& mIpcService;
79 const std::string mService;
80 const std::string mInterface;
Wrapper for the upstart-dbus-bridge interface that allows starting and stopping system services.
Definition Upstart.h:54
bool stop(const std::string &name, bool wait=true) const
Attempts to stop the service with the given name.
Definition Upstart.cpp:215
bool invokeMethod(const std::string &method, const std::string &name, const std::vector< std::string > &env, bool wait) const
Requests a start or a restart of a service.
Definition Upstart.cpp:56
bool restart(const std::string &name, const std::vector< std::string > &env=std::vector< std::string >(), bool wait=true) const
Attempts to perform a stop and a start on the service with the given name.
Definition Upstart.cpp:187
bool start(const std::string &name, const std::vector< std::string > &env=std::vector< std::string >(), bool wait=true) const
Attempts to start the service with the given name.
Definition Upstart.cpp:154