diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2015-10-26 15:20:58 -0400 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-11-12 12:32:45 -0600 |
commit | 33d3f33b3ca7dd2ce616b8182d588d0743c2f124 (patch) | |
tree | 9cd258ecf6a4787390f4c366bda04adf721bdabe /src/rc/rc-status.c | |
parent | ddb895b355e02c9c07b00bfaf00d1bf8a7abbc03 (diff) |
Implement "want" dependency
The want dependency is similar to the use dependency. If a service
script, for example called service1, adds "want service2" to its depend
function, OpenRC will attempt to start service2, if it exists on the
system, when service1 is started.
However, service1 will start regardless of the status of
service2.
X-Gentoo-Bug: 406021
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=406021
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r-- | src/rc/rc-status.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c index 1f67b756..968d32bb 100644 --- a/src/rc/rc-status.c +++ b/src/rc/rc-status.c @@ -343,6 +343,7 @@ rc_status(int argc, char **argv) } needsme = rc_stringlist_new(); rc_stringlist_add(needsme, "needsme"); + rc_stringlist_add(needsme, "wantsme"); nservices = rc_stringlist_new(); alist = rc_stringlist_new(); l = rc_stringlist_add(alist, ""); @@ -365,7 +366,7 @@ rc_status(int argc, char **argv) * be added to the list */ unsetenv("RC_SVCNAME"); - print_level("Dynamic", "needed"); + print_level("Dynamic", "needed/wanted"); print_services(NULL, nservices); print_level("Dynamic", "manual"); print_services(NULL, services); |