diff --git a/src/core/service.c b/src/core/service.c index a2a8e4af69..a9047be1ca 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -3604,8 +3604,10 @@ static void service_notify_cgroup_empty_event(Unit *u) { break; } - if (s->exit_type == SERVICE_EXIT_CGROUP && main_pid_good(s) <= 0) - service_enter_start_post(s); + if (s->exit_type == SERVICE_EXIT_CGROUP && main_pid_good(s) <= 0) { + service_enter_stop_post(s, SERVICE_SUCCESS); + break; + } _fallthrough_; case SERVICE_START_POST: