RC-STATUS(8)

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

πŸ’– NAME πŸ’–

okay so bestie, this is the manual page for rc-status(8) β€” and its whole job is literally to show status info about runlevels. That's it, that's the assignment. 🫢


✨ SYNOPSIS ✨

Three little moods, pick ur fighter:

rc-status [-C] [-f ini] [-i state] [runlevel]
rc-status [-C] [-f ini] [-a | -m | -S | -s | -u]
rc-status [-C] [-c | -l | -r]

πŸ¦‹ DESCRIPTION πŸ¦‹

rc-status gathers and displays information about the status of services in different runlevels. Default behavior? It shows info about the current runlevel and any unassigned services that are not stopped β€” but you can quickly examine any runlevel too, no cap. πŸ’…

If an active service is being supervised by supervise-daemon(8), the amount of time the daemon has been active along with the number of times it has been respawned in the current respawn period will be displayed. So yes, you get the daemon's little activity résumé. ✨

The options are as follows, bestie:


πŸŽ€ OPTIONS πŸŽ€

  • -a, --all β€” Show all runlevels and their services.
  • -c, --crashed β€” List all services that have crashed (in any runlevel) in plain text format.
  • -f, --format β€” Select a format for the output. Currently, the only one that can be specified is ini, which outputs in *.ini format.
  • -i, --in-state β€” Show services in given state. Can be combined, e.g -i started -i crashed will select any services which are either in started or crashed state. Available states are: stopped, started, stopping, starting, inactive, hotplugged, failed, scheduled and crashed.
  • -l, --list β€” List all defined runlevels.
  • -m, --manual β€” Show all manually started services.
  • -r, --runlevel β€” Print the current runlevel name.
  • -S, --supervised β€” Show all supervised services.
  • -s, --servicelist β€” Show all services (in any runlevel).
  • -u, --unused β€” Show services not assigned to any runlevel.
  • -C, --nocolor β€” Disable color output.
  • runlevel β€” Show information only for the named runlevel.

πŸ’€ EXIT STATUS πŸ’€

rc-status exits 0, except when checking for crashed services and it doesn't find any. That's the one tiny exception, bestie β€” otherwise it's a clean 0. 🫢


🧠 IMPLEMENTATION NOTES 🧠

rc-status tries to list services within each runlevel in the presently resolved dependency order if the dependency tree is available. So it's giving organized, dependency-aware behavior when it can. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ“ AUTHORS πŸ“

Roy Marples <roy@marples.name>


kisses, your OpenRC bestie πŸ’… β€” this page is from OpenRC, dated March 16, 2025. mwah! πŸŽ€

πŸ“¦ where this page comes from