Clarify the documentation about the reboot runlevel
The reboot runlevel does exist, but it gets remapped to the shutdown runlevel internally.
This commit is contained in:
parent
f18763bcd8
commit
47c3b28459
@ -333,9 +333,10 @@ sets the following environment variables for use in the service scripts:
|
|||||||
Name of the service.
|
Name of the service.
|
||||||
.It Va RC_RUNLEVEL
|
.It Va RC_RUNLEVEL
|
||||||
Current runlevel that rc is in. Note that, in OpenRC, the reboot
|
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
|
runlevel is mapped to the shutdown runlevel. This was done because most
|
||||||
to know if a system is shutting down or rebooting. If you are writing a
|
services do not need to know if a system is shutting down or rebooting.
|
||||||
service that needs to know the difference, see the RC_REBOOT variable.
|
If you are writing a service that does need to know this, see the
|
||||||
|
RC_REBOOT variable.
|
||||||
.It Va RC_REBOOT
|
.It Va RC_REBOOT
|
||||||
This variable contains YES if the system is rebooting. If your service
|
This variable contains YES if the system is rebooting. If your service
|
||||||
needs to know the system is rebooting, you should test this variable.
|
needs to know the system is rebooting, you should test this variable.
|
||||||
|
Loading…
Reference in New Issue
Block a user