Forrest logo
back to the rc-status tool

rc-status:tldr:3c1f2

rc-status: Get the current runlevel.
$ rc-status --runlevel
try on your machine

The command rc-status --runlevel is used to display the status of the services in the current runlevel of a Unix-like system that uses OpenRC as its init system.

OpenRC is a service management framework that helps manage the startup and shutdown of services on Unix-like systems. Runlevels are predefined operating states or configurations of the system, which determine which services are started or stopped when the system boots up or shuts down.

When you run rc-status --runlevel, it will list all the services in the current runlevel along with their respective status. The status of a service can be one of the following:

  • Started: The service is currently running.
  • Stopped: The service is stopped or not running.
  • Failed: The service was not able to start correctly.
  • NoFile: The service's init script is missing or cannot be found.
  • Unknown: The status of the service cannot be determined.

This command can be helpful for system administrators to quickly check the status of services running in the current runlevel, which can aid in troubleshooting or verifying the proper functioning of the system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the rc-status tool