Lines Matching refs:Service
65 class Service {
67 Service(const std::string& name, Subcontext* subcontext_for_restart_commands,
70 Service(const std::string& name, unsigned flags, uid_t uid, gid_t gid,
75 … static std::unique_ptr<Service> MakeTemporaryOneshotService(const std::vector<std::string>& args);
132 using OptionParser = Result<Success> (Service::*)(std::vector<std::string>&& args);
263 void AddService(std::unique_ptr<Service> service);
264 void RemoveService(const Service& svc);
266 template <typename T, typename F = decltype(&Service::name)>
267 Service* FindService(T value, F function = &Service::name) const {
269 [&function, &value](const std::unique_ptr<Service>& s) {
278 Service* FindInterface(const std::string& interface_name) { in FindInterface()
292 const std::vector<std::unique_ptr<Service>>& services() const { return services_; } in services()
293 const std::vector<Service*> services_in_shutdown_order() const;
299 void DelayService(const Service& service);
302 std::vector<std::unique_ptr<Service>> services_;
324 std::unique_ptr<Service> service_;