Rc-status
Welcome to Rc-status. |
OpenRC | ||
---|---|---|
Scripts | ||
/etc/rc rc - shell |
/etc/rc.devd The generic hook into OpenRC. |
/sbin/rcorder Ordering rc-scripts |
/etc/init.d Scripts to run OpenRC |
/usr/local/etc/init.d Scripts to run OpenRC |
|
/etc/rc.d Scripts automatically executed at boot and shutdown |
/usr/local/etc/rc.d Special scripts |
|
Configuration | ||
/etc/devd.conf Configuration file for devd(8) |
/etc/conf.d Initscript Configuration Files |
/etc/rc.conf.d Smaller configuration files |
/etc/defaults/rc.conf Specifies the default settings for all the available options. |
/etc/rc.conf The global OpenRC configuration file |
/etc/rc.conf.ghostbsd GhostBSD specific configurations |
Tools/Helper | ||
/usr/sbin/sysrc Safely edit system rc files |
/bin/rc-status Shows which services are running |
/sbin/rc-update Add or delete services |
/sbin/rc-service Locate and run an OpenRC service |
||
Back to the System |
Introduction
The rc-status helper will print all currently active runlevels and the state of services in them.
All runlevels are represented as folders in /etc/runlevels/ with symlinks to the actual service scripts.
All services must reside in the /etc/init.d or /usr/local/etc/init.d directories. They must also conform to the OpenRC runscript standard.
Manual
NAME
rc-status – show status info about runlevels
SYNOPSIS
rc-status [-aclsuC] [-f ini] [runlevel]
DESCRIPTION
rc-status gathers and displays information about the status of services in different runlevels. The default behavior is to show information about the current runlevel and any unassigned services that are not stopped, but any runlevel can be quickly examined.
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.
The options are as follows:
-a, --all Show all runlevels and their services.
-c, --crashed List all services that have crashed.
-f, --format Select a format for the output. Currently, the only one that can be specified is ini, which outputs in *.ini format.
-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.
-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.
IMPLEMENTATION NOTES
rc-status tries to list services within each runlevel in the presently resolved dependency order if the dependency tree is available.
Example for Rc-status
If you run
# rc-status
you will see which services are running:
Runlevel: default
dbus [ started 00:06:23 (0) ] webcamd [ started ] moused [ started ] lightdm [ started ] avahi-daemon [ started ] vboxnet [ started ] netmount [ started ] devfs [ started ] ntpd [ started 00:06:20 (0) ] cupsd [ started 00:06:21 (0) ] local [ started ] avahi-dnsconfd [ started ] hald [ started ]
Dynamic Runlevel: hotplugged
moused.ums0 [ started ] webcamd.ugen0.4 [ started ]
Dynamic Runlevel: needed/wanted
tmp [ started ] cleartmp [ started ] var [ started ] cleanvar [ started ] ldconfig [ started ] ntpdate [ started ]
Dynamic Runlevel: manual