From 3b2f2690e7b1f009c8edcad591cbccefeb8354fb Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 18 Jun 2018 18:33:13 +0200 Subject: [PATCH] initctl: start and restart should behave the same if svc has crashed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by Mattias Walström, Westermo. Signed-off-by: Joachim Nilsson --- src/api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api.c b/src/api.c index 55958ab6..5289cfd8 100644 --- a/src/api.c +++ b/src/api.c @@ -78,6 +78,9 @@ static int service_restart(svc_t *svc) if (!svc) return 1; + if (svc_is_blocked(svc)) + svc_start(svc); + svc_mark_dirty(svc); service_step(svc);