The runlevels 0 and 6 have the meaning of shutting down or rebooting the system.
If I enter the command init 0
, the system will shut down as a result.
However my question is
- if the system is shutting down, because it has successfuly changed to runlevel 0
- or if I only triggered the change from my current runlevel to runlevel 0 (i.e. told my system that I want to go to runlevel 0) and it will reach it after shutdown? Which is of course never, as the system will do nothing after powered down.
In other words: Is the system in runlevel 0
- while the system is shutting down (during the transition from running to being shut down), or
- after the system has been shut down (as an unreachable runlevel that describes the result) ?
And an additional question regarding runlevel 6: Is the system in runlevel 6 during any phase of the next boot?
I am interested in the behaviour of Linux (if there is any difference to Unix).