commit:     958f57d895b6573b39e62097e5e9881f16174715
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Tue May 15 21:27:42 2018 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Tue May 15 21:27:42 2018 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=958f57d8

openrc-run: respect the RC_NODEPS environment variable

 src/rc/openrc-run.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index ac682c4c..43889f2d 100644
--- a/src/rc/openrc-run.c
+++ b/src/rc/openrc-run.c
@@ -1268,6 +1268,9 @@ int main(int argc, char **argv)
                case_RC_COMMON_GETOPT
                }
 
+       if (rc_yesno(getenv("RC_NODEPS")))
+               deps = false;
+
        /* If we're changing runlevels and not called by rc then we cannot
           work with any dependencies */
        if (deps && getenv("RC_PID") == NULL &&

Reply via email to