summaryrefslogtreecommitdiff
path: root/initd/main.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-25 22:07:33 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-03-25 22:07:33 +0200
commit09115f9a97b820c69eb29d3621a4e65dac3dbfc5 (patch)
tree128d03d9c1e32c7a22ad8600a2659f2d02ac8be3 /initd/main.c
parent8fc5b24bdd4bed74035766497f57c66004ed6af2 (diff)
Print status when starting a service marked as respawn
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'initd/main.c')
-rw-r--r--initd/main.c3
1 files changed, 3 insertions, 0 deletions
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);