initctl: start and restart should behave the same if svc has crashed

Found by Mattias Walström, Westermo.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-06-18 18:33:49 +02:00
1 parent 65ccc407fa
commit 3b2f2690e7
1 file changed
+3
+3
View File
@@ -78,6 +78,9 @@ static int service_restart(svc_t *svc)
if (!svc) if (!svc)
return 1; return 1;
if (svc_is_blocked(svc))
svc_start(svc);
svc_mark_dirty(svc); svc_mark_dirty(svc);
service_step(svc); service_step(svc);