}
bool will_restart = (desired_state == service_state_t::STARTED)
- && services->get_auto_restart();
+ && !services->is_shutting_down();
for (auto & dependency : depends_on) {
// we signal dependencies in case they are waiting for us to stop:
bool service_record::do_auto_restart() noexcept
{
if (auto_restart) {
- return services->get_auto_restart();
+ return !services->is_shutting_down();
}
return false;
}
force_stop = true;
if (! pinned_started) {
prop_stop = true;
- services->add_transition_queue(this);
+ services->add_prop_queue(this);
}
}
}