aboutsummaryrefslogtreecommitdiff
path: root/man/runscript.8
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-02-19 12:49:53 -0600
committerWilliam Hubbs <williamh@gentoo.org>2012-02-19 12:49:53 -0600
commitf18763bcd8834909222d3ca1388845eca4d6ac13 (patch)
tree77c3658e165e09799c20389066193a6849b5401b /man/runscript.8
parentdd2b4a067a04ba8441093a22411eea32bae86971 (diff)
Document the RC_REBOOT variable
Diffstat (limited to 'man/runscript.8')
-rw-r--r--man/runscript.88
1 files changed, 7 insertions, 1 deletions
diff --git a/man/runscript.8 b/man/runscript.8
index 5901f475..1351aeae 100644
--- a/man/runscript.8
+++ b/man/runscript.8
@@ -332,7 +332,13 @@ sets the following environment variables for use in the service scripts:
.It Va RC_SVCNAME
Name of the service.
.It Va RC_RUNLEVEL
-Current runlevel that rc is in.
+Current runlevel that rc is in. Note that, in OpenRC, the reboot
+runlevel does not exist. This was done because most services do not need
+to know if a system is shutting down or rebooting. If you are writing a
+service that needs to know the difference, see the RC_REBOOT variable.
+.It Va RC_REBOOT
+This variable contains YES if the system is rebooting. If your service
+needs to know the system is rebooting, you should test this variable.
.It Va RC_BOOTLEVEL
Boot runlevel chosen. Default is boot.
.It Va RC_DEFAULTLEVEL