{
if (have_console) {
bp_sys::tcsetpgrp(0, bp_sys::getpgrp());
- discard_console_log_buffer();
release_console();
}
}
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;
}
notify_listeners(service_event_t::STARTED);
if (onstart_flags.rw_ready) {
- open_control_socket();
+ rootfs_is_rw();
}
if (onstart_flags.log_ready) {
setup_external_log();
force_stop = true;
if (! pinned_started) {
prop_stop = true;
- services->add_transition_queue(this);
+ services->add_prop_queue(this);
}
}
}