Warn about going inactive correctly.

This commit is contained in:
Roy Marples 2009-06-01 20:10:42 +01:00
parent efec0b5012
commit c3e9a7ec14

View File

@ -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);