aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index f0968516..aba192f0 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -351,6 +351,9 @@ rc_status(int argc, char **argv)
rc_stringlist_free(tmp);
}
l->value = p;
+ /* we are unsetting RC_SVCNAME because last loaded service
+ wount be added to list */
+ unsetenv(RC_SVCNAME);
print_level("Dynamic", "needed");
print_services(NULL, nservices);
print_level("Dynamic", "manual");