OPENRC(8)

πŸ“¦
version 0.63.2 Β· 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, debian trixie

πŸ’– OPENRC πŸ’–

ok bestie, so this is the openrc page from the System Manager's Manual β€” it's giving main character energy for your whole boot process, and you're literally about to understand it. 🫢


✨ NAME ✨

openrc β€” stops and starts services for the specified runlevel πŸŽ€


🌸 SYNOPSIS 🌸

openrc [-n, --no-stop] [-o, --override] [runlevel]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: openrc first stops any services that are not in the runlevel you specified β€” unless you passed --no-stop, in which case it simply does not do that, periodt. then it starts any services in the runlevel (plus any stacked runlevels added by rc-update) that aren't currently started. πŸ’…

if you don't specify a runlevel at all, we just use the current runlevel. easy.

there are some special runlevels you should lowkey be aware of, bestie:

  • sysinit β€” brings up any system specific stuff such as /dev, /proc and optionally /sys for Linux based systems. it also mounts /run/openrc as a ramdisk using tmpfs where available, unless / is mounted rw at boot. openrc uses /run/openrc to hold state information about the services it runs. sysinit always runs when the host first starts and should not be run again. 🚫
  • boot β€” generally the only services you should add to the boot runlevel are those which deal with the mounting of filesystems, set the initial state of attached peripherals and logging. hotplugged services are added to the boot runlevel by the system. all services in the boot and sysinit runlevels are automatically included in all other runlevels, except for those listed here.
  • single β€” stops all services except for those in the sysinit runlevel. πŸ’€
  • reboot β€” changes to the shutdown runlevel and then reboots the host.
  • shutdown β€” changes to the shutdown runlevel and then halts the host.
πŸ›‘ bestie NO. you should not call any of these runlevels yourself. instead you should use init(8) and shutdown(8) and let them call these special runlevels. they got it, i promise. πŸ™ˆ

πŸŽ€ OPTIONS πŸŽ€

  • -n, --no-stop β€” Do not stop any services. πŸ›‘
  • -o, --override β€” Override the next runlevel to change into when leaving single user or boot runlevels.
  • -s, --service β€” Run the service specified with the rest of the arguments.
  • -S, --sys β€” Output the RC system type, if any. πŸ”
  • -h, --help β€” Display usage information and exit.
  • -C, --nocolor β€” Disable color output. (tragic, but okay πŸ₯²)
  • -V, --version β€” Display software version.
  • -v, --verbose β€” Run verbosely. πŸ—£οΈ
  • -q, --quiet β€” Run quietly (repeat to suppress errors). 🀫

🌈 SEE ALSO 🌈

openrc-run(8), rc-status(8), rc-update(8), init(8), shutdown(8)


πŸ‘‘ AUTHORS πŸ‘‘

Roy Marples <roy@marples.name>


and that's the whole thing bestie, no cap πŸ’– this page is from OpenRC, dated May 2, 2009, and yeah β€” it's literally titled OPENRC(8) up top and at the bottom too, iykyk. go forth and slay your runlevels βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from