aboutsummaryrefslogtreecommitdiff
path: root/src/rc/runscript.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/runscript.c')
-rw-r--r--src/rc/runscript.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 44da58c5..91a31a59 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -755,13 +755,10 @@ static void svc_start_real()
if (ibsave)
unsetenv("IN_BACKGROUND");
- if (!started)
+ if (rc_service_state(service) & RC_SERVICE_INACTIVE)
+ ewarnx("WARNING: %s has started, but is inactive", applet);
+ else if (!started)
eerrorx("ERROR: %s failed to start", applet);
- else {
- if (rc_service_state(service) & RC_SERVICE_INACTIVE)
- ewarnx("WARNING: %s has started, but is inactive",
- applet);
- }
rc_service_mark(service, RC_SERVICE_STARTED);
exclusive_fd = svc_unlock(applet, exclusive_fd);