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
2018-06-18 18:33:49 +02:00
parent 65ccc407fa
commit 3b2f2690e7
+3
View File
@@ -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);