3 class test_service : public service_record
6 test_service(service_set *set, std::string name, service_type_t type_p,
7 const std::list<prelim_dep> &deplist_p)
8 : service_record(set, name, type_p, deplist_p)
13 // Do any post-dependency startup; return false on failure
14 virtual bool bring_up() noexcept override
16 // return service_record::bring_up();
20 // All dependents have stopped.
21 virtual void bring_down() noexcept override
23 return service_record::bring_down();
26 // Whether a STARTING service can immediately transition to STOPPED (as opposed to
27 // having to wait for it reach STARTED and then go through STOPPING).
28 virtual bool can_interrupt_start() noexcept override
30 return waiting_for_deps;
33 virtual bool interrupt_start() noexcept override
38 void started() noexcept
40 service_record::started();
43 void failed_to_start() noexcept
45 service_record::failed_to_start();