aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2018-05-15 16:27:42 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2018-05-15 16:27:42 -0500
commit958f57d895b6573b39e62097e5e9881f16174715 (patch)
tree0bf71fe745076ced13954a8b176e1559e4211c58 /src
parent04886efd85328988657c34440da9ba6aa2841cfd (diff)
openrc-run: respect the RC_NODEPS environment variable
Diffstat (limited to 'src')
-rw-r--r--src/rc/openrc-run.c3
1 files changed, 3 insertions, 0 deletions
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 &&