Warn about going inactive correctly.
This commit is contained in:
parent
efec0b5012
commit
c3e9a7ec14
@ -755,13 +755,10 @@ static void svc_start_real()
|
|||||||
if (ibsave)
|
if (ibsave)
|
||||||
unsetenv("IN_BACKGROUND");
|
unsetenv("IN_BACKGROUND");
|
||||||
|
|
||||||
if (!started)
|
|
||||||
eerrorx("ERROR: %s failed to start", applet);
|
|
||||||
else {
|
|
||||||
if (rc_service_state(service) & RC_SERVICE_INACTIVE)
|
if (rc_service_state(service) & RC_SERVICE_INACTIVE)
|
||||||
ewarnx("WARNING: %s has started, but is inactive",
|
ewarnx("WARNING: %s has started, but is inactive", applet);
|
||||||
applet);
|
else if (!started)
|
||||||
}
|
eerrorx("ERROR: %s failed to start", applet);
|
||||||
|
|
||||||
rc_service_mark(service, RC_SERVICE_STARTED);
|
rc_service_mark(service, RC_SERVICE_STARTED);
|
||||||
exclusive_fd = svc_unlock(applet, exclusive_fd);
|
exclusive_fd = svc_unlock(applet, exclusive_fd);
|
||||||
|
Loading…
Reference in New Issue
Block a user