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:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user