[systemd-devel] [PATCH] service: schedule JOB_RESTART from SERVICE_AUTO_RESTART state
David Ward
david.ward at ll.mit.edu
Sun Feb 19 12:36:44 PST 2012
---
src/service.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/src/service.c b/src/service.c
index ec2725a..74dc60c 100644
--- a/src/service.c
+++ b/src/service.c
@@ -2207,9 +2207,7 @@ static void service_enter_restart(Service *s) {
goto fail;
}
- service_enter_dead(s, SERVICE_SUCCESS, false);
-
- if ((r = manager_add_job(UNIT(s)->manager, JOB_START, UNIT(s), JOB_FAIL, false, &error, NULL)) < 0)
+ if ((r = manager_add_job(UNIT(s)->manager, JOB_RESTART, UNIT(s), JOB_FAIL, false, &error, NULL)) < 0)
goto fail;
log_debug("%s scheduled restart job.", UNIT(s)->id);
--
1.7.1
More information about the systemd-devel
mailing list