From f18763bcd8834909222d3ca1388845eca4d6ac13 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 19 Feb 2012 12:49:53 -0600 Subject: [PATCH] Document the RC_REBOOT variable --- man/runscript.8 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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