rc-status: show status for supervised services instead of a list
This commit is contained in:
parent
eeba6df476
commit
9a2115f762
@ -300,10 +300,10 @@ int main(int argc, char **argv)
|
|||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case 'S':
|
case 'S':
|
||||||
services = rc_services_in_state(RC_SERVICE_STARTED);
|
services = rc_services_in_state(RC_SERVICE_STARTED);
|
||||||
TAILQ_FOREACH(s, services, entries)
|
TAILQ_FOREACH_SAFE(s, services, entries, t)
|
||||||
if (rc_service_value_get(s->value, "child_pid")) {
|
if (!rc_service_value_get(s->value, "child_pid"))
|
||||||
printf("%s\n", s->value);
|
TAILQ_REMOVE(services, s, entries);
|
||||||
}
|
print_services(NULL, services);
|
||||||
goto exit;
|
goto exit;
|
||||||
/* NOTREACHED */
|
/* NOTREACHED */
|
||||||
case 's':
|
case 's':
|
||||||
|
Loading…
Reference in New Issue
Block a user