RUNLEVEL(8)

πŸ’– RUNLEVEL(8) πŸ’–

okay bestie so this is runlevel(8), straight out of the GNU/Linux System Administrator's manual, and it's basically the tiny little diplomat that keeps old SysV-style scripts from having a meltdown 🫢


✨ NAME ✨

runlevel β€” the SysV-init compatibility layer, aka the vibe translator between your scripts and runit πŸ’…


🌸 SYNOPSIS 🌸

/sbin/runlevel

that's it. no args. no flags. she's low maintenance, she's booked, she's busy πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“ β€” this program always prints a compatibility string. like, always. no cap. that string is what the update-rc.d program uses, and also what some other initscripts use, for example kexec.

the exact string depends on which stage you're in:

  • during stage 2 β€” she prints the N 2 string ✨
  • during stage 3 β€” okay this one's conditional, pay attention bestie:
    • if runit was told to reboot the system, the N 6 string gets printed πŸ”₯
    • otherwise, the N 0 string is printed πŸ’€

and that's literally the whole job. no notes.


🌈 SEE ALSO 🌈


ngl it's giving "small program, big responsibility" energy and we respect it for that πŸ’œ

mwah πŸ’‹ that's the whole page, and it's from the GNU/Linux System Administrator's manual, dated Jan 3, 2022. slay, go forth and check your runlevel πŸŽ€βœ¨