From cb19bdd968de15004a21022d453319827eaa208d Mon Sep 17 00:00:00 2001 From: David Ward Date: Sun, 12 Feb 2012 15:48:31 -0500 Subject: [PATCH] service: schedule JOB_RESTART from SERVICE_AUTO_RESTART state --- 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