From 47c3b284599cb4cfc9d1263af6d2039d67906b43 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 19 Feb 2012 13:11:11 -0600 Subject: Clarify the documentation about the reboot runlevel The reboot runlevel does exist, but it gets remapped to the shutdown runlevel internally. --- man/runscript.8 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man/runscript.8 b/man/runscript.8 index 1351aeae..bab54e2d 100644 --- a/man/runscript.8 +++ b/man/runscript.8 @@ -333,9 +333,10 @@ sets the following environment variables for use in the service scripts: Name of the service. .It Va RC_RUNLEVEL 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. +runlevel is mapped to the shutdown runlevel. 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 does need to know this, 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. -- cgit v1.2.3