|OPENRC(8)||System Manager's Manual (smm)||OPENRC(8)|
openrc — stops and
starts services for the specified runlevel
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:
- Brings up any system specific stuff such as /dev,
/proc and optionally /sys
for Linux based systems. It also mounts
/lib/rc/init.d as a ramdisk using tmpfs where
available unless / is mounted rw at boot.
openrcuses /lib/rc/init.d to hold state information about the services it runs. sysinit always runs when the host first starts should not be run again.
- 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.
- Stops all services except for those in the sysinit runlevel.
- Changes to the shutdown runlevel and then reboots the host.
- Changes to the shutdown runlevel and then halts the host.
- Do not stop any services.
- Override the next runlevel to change into when leaving single user or boot runlevels
- Run the service specified with the rest of the arguments.
- Output the RC system type, if any.
- Display usage information and exit.
- Disable color output.
- Display software version.
- Run verbosely.
- Run quietly (repeat to suppress errors).
Roy Marples ⟨firstname.lastname@example.org⟩
|May 2, 2009||OpenRC|