aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-01-08 13:16:27 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-01-08 13:16:27 -0600
commite5a94dd3f4570d74b6e5149253e6d17261cf27f9 (patch)
tree2ea6673df5aae4327408bb4fd7813e79081b6809 /man
parent8352082eb6582d6e7adc26fc64dfd2255eadf2a7 (diff)
Add missing documentation for environment variables
Add documentation for the RC_SERVICE, RC_GOINGDOWN, RC_LIBEXECDIR and RC_NO_UMOUNTS environment variables. X-Gentoo-Bug: 489344 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=489344
Diffstat (limited to 'man')
-rw-r--r--man/openrc-run.811
1 files changed, 11 insertions, 0 deletions
diff --git a/man/openrc-run.8 b/man/openrc-run.8
index 03462414..c330e8c0 100644
--- a/man/openrc-run.8
+++ b/man/openrc-run.8
@@ -342,6 +342,8 @@ sets the following environment variables for use in the service scripts:
.Bl -tag -width "RC_DEFAULTLEVEL"
.It Va RC_SVCNAME
Name of the service.
+.It Va RC_SERVICE
+Full path to the service.
.It Va RC_RUNLEVEL
Current runlevel that OpenRC is in. Note that, in OpenRC, the reboot
runlevel is mapped to the shutdown runlevel. This was done because most
@@ -367,6 +369,15 @@ The result of `uname -s`.
This contains the name of the command the service script is executing, such
as start, stop, restart etc. One example of using this is to make a
service script behave differently when restart is being executed.
+.It Va RC_GOINGDOWN
+This variable contains YES if the system is going into single user mode
+or shutting down.
+.It Va RC_LIBEXECDIR
+The value of libexecdir which OpenRC was configured with during build
+time.
+.It Va RC_NO_UMOUNTS
+This variable is used by plugins to contain a list of directories which
+should not be unmounted.
.El
.Sh FILES
.Pp