openrc8
Stops and starts services for the specified runlevel
Usage
openrc [-n,
--no-stop]
[-o,
--override]
[runlevel]
Overview
openrc first stops any services that are not in the specified runlevel unless --no-stop is specified, then starts any services in the runlevel and stacked runlevels added by rc-update that are not currently started. If no runlevel is specified, we use the current runlevel.
There are some special runlevels that you should be aware of:
- 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.
openrcuses /run/openrc to hold state information about the services it runs. sysinit always runs when the host first starts 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.
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.
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.
-
-V, --version -
Display software version.
-
-v, --verbose -
Run verbosely.
-
-q, --quiet -
Run quietly (repeat to suppress errors).
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.
--help since Debian 12 (Bookworm);
--no-stop since Debian 12 (Bookworm);
--nocolor since Debian 12 (Bookworm);
--override since Debian 12 (Bookworm);
--quiet since Debian 12 (Bookworm);
--service since Debian 12 (Bookworm);
--sys since Debian 12 (Bookworm);
--verbose since Debian 12 (Bookworm);
--version since Debian 12 (Bookworm);
-C since Debian 12 (Bookworm);
-S since Debian 12 (Bookworm);
-V since Debian 12 (Bookworm);
-h since Debian 12 (Bookworm);
-n since Debian 12 (Bookworm);
-o since Debian 12 (Bookworm);
-q since Debian 12 (Bookworm);
-s since Debian 12 (Bookworm);
-v since Debian 12 (Bookworm).