<div dir="ltr">Hi folks,<div><br></div><div>I know runlevel is a out-of-date concept, but I am still a bit curious about the current support of runlevel in systemd. If I understand correctly, the runlevel is updated via "systemd-update-utmp". After I check the source code, I think "systemd-update-utmp" has the following behavior:</div><div><br></div><div>- "systemd-update-utmp reboot": update with ut_type=BOOT_TIME and ut_pid=0.</div><div>- "systemd-update-utmp shutdown": update with ut_type=RUN_LVL and ut_pid=0.</div><div>- "systemd-update-utmp runlevel": update with ut_type=RUN_LVL and ut_pid=(runlevel, prev-runlevel), where runlevel may be 1, 3, 5.</div><div><br></div><div>Since I didn't see the runlevel will be updated to 6 anywhere, may I ask if the current behavior of "runlevel" command will show 6, indicating that the system is rebooting?</div><div><br></div><div>Thank you.</div><div><br></div><div>John Lin</div></div>