OPENRC(8)
π 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,/procand optionally/sysfor Linux based systems. it also mounts/run/openrcas a ramdisk usingtmpfswhere available, unless/is mountedrwat boot.openrcuses/run/openrcto hold state information about the services it runs.sysinitalways runs when the host first starts and should not be run again. π«bootβ generally the only services you should add to thebootrunlevel are those which deal with the mounting of filesystems, set the initial state of attached peripherals and logging. hotplugged services are added to thebootrunlevel by the system. all services in thebootandsysinitrunlevels are automatically included in all other runlevels, except for those listed here.singleβ stops all services except for those in thesysinitrunlevel. πrebootβ changes to theshutdownrunlevel and then reboots the host.shutdownβ changes to theshutdownrunlevel and then halts the host.
π bestie NO. you should not call any of these runlevels yourself. instead you should useinit(8)andshutdown(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 leavingsingleuser orbootrunlevels.-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
- alpine 3.22: openrc-doc 0.62.6-r0 Β· BSD-2-Clause
- alpine 3.23: openrc-doc 0.63-r1 Β· BSD-2-Clause
- alpine 3.24: openrc-doc 0.63.2-r0 Β· BSD-2-Clause
- debian trixie: openrc 0.56-1 Β· BSD-2-clauses
- Copyright (c) 2007-2015 The OpenRC Authors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms