---
src/core/service.c |2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/core/service.c b/src/core/service.c
index 4358a94..e9fbd6d 100644
--- a/src/core/service.c
+++ b/src/core/service.c
@@ -2220,6 +2220,8 @@ static void service_enter_restart(Service *s) {
Do not bypass the SERVICE_DEAD/SERVICE_FAILED state by manually issuing
a start job while an automatic restart is pending.
---
src/core/service.c | 11 ++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/core/service.c b/src/core/service.c
index 5aa1c0f..3400b55 10064
When service_stop() handles a service in the SERVICE_AUTO_RESTART state,
it calls service_set_state() to transition it to the SERVICE_DEAD state.
However if the service failed, it should transition it to SERVICE_FAILED
instead, which will trigger its OnFailure units. To achieve this, we now
call se