From 09115f9a97b820c69eb29d3621a4e65dac3dbfc5 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 25 Mar 2018 22:07:33 +0200 Subject: Print status when starting a service marked as respawn Signed-off-by: David Oberhollenzer --- initd/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'initd/main.c') diff --git a/initd/main.c b/initd/main.c index c4b796c..efd3a30 100644 --- a/initd/main.c +++ b/initd/main.c @@ -123,6 +123,9 @@ static void start_runlevel(int level) true); delsvc(svc); } else { + if (svc->type == SVC_RESPAWN) + print_status(svc->desc, STATUS_STARTED, false); + svc->pid = runlst(svc->exec, svc->num_exec, svc->ctty); if (svc->pid == -1) { print_status(svc->desc, STATUS_FAIL, false); -- cgit v1.2.3