return records;
}
- // Stop the service with the given name. The named service will begin
- // transition to the 'stopped' state.
- void stop_service(const std::string &name) noexcept;
-
// Add a service record to the state propagation queue. The service record will have its
// do_propagation() method called when the queue is processed.
void add_prop_queue(service_record *service) noexcept
return ::find_service(records, name.c_str());
}
-void service_set::stop_service(const std::string & name) noexcept
-{
- service_record *record = find_service(name);
- if (record != nullptr) {
- record->stop();
- process_queues();
- }
-}
-
// Called when a service has actually stopped; dependents have stopped already, unless this stop
// is due to an unexpected process termination.
void service_record::stopped() noexcept