summaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-23 20:27:40 +0000
committerRoy Marples <roy@marples.name>2009-04-23 20:27:40 +0000
commit7086df56640b095669e6fcd72ca902cc497d6e17 (patch)
tree4e935fd11afd0fe9295ee66ad1efd322ee8a7130 /src/rc/rc-status.c
parent7dc9c39503ded408c34ba6cd96ebdab352fbb6a6 (diff)
downloadopenrc-7086df56640b095669e6fcd72ca902cc497d6e17.tar.gz
openrc-7086df56640b095669e6fcd72ca902cc497d6e17.tar.bz2
openrc-7086df56640b095669e6fcd72ca902cc497d6e17.tar.xz
Don't include hotplugged services in manual.
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index 8801826..2f386a4 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -297,9 +297,10 @@ rc_status(int argc, char **argv)
}
TAILQ_FOREACH_SAFE(s, services, entries, t) {
if (rc_stringlist_find(sservices, s->value) ||
- rc_service_state(s->value) & RC_SERVICE_STOPPED)
- {
- TAILQ_REMOVE(services, s, entries);
+ rc_service_state(s->value) &
+ (RC_SERVICE_STOPPED | RC_SERVICE_HOTPLUGGED))
+ {
+ TAILQ_REMOVE(services, s, entries);
free(s->value);
free(s);
}