RC-UPDATE(8) System Manager's Manual (smm) RC-UPDATE(8)

# [NAME](#NAME)

`rc-update` — add and remove services or runlevels, to and from runlevels

# [SYNOPSIS](#SYNOPSIS)

`rc-update` \[`-s`, `--stack`] `add` `dep` \[`runlevel ...`]

`rc-update` \[`-s`, `--stack`] \[`-a`, `--all`] `delete` `dep` \[`runlevel ...`]

`rc-update` \[`-u`, `--update`] \[`-v`, `--verbose`] `show` \[`runlevel ...`]

# [DESCRIPTION](#DESCRIPTION)

OpenRC uses named runlevels. Rather than editing some obscure file or managing a directory of symlinks, `rc-update` exists to quickly add or delete services to and from different runlevels. All services must reside in the /etc/init.d or /usr/local/etc/init.d directories. They must also be standard OpenRC scripts, meaning they must use openrc-run.

[`add`](#add) `service`

Add the `service` to the `runlevel` or the current one if none given. Services added to the boot runlevel must exist in /etc/init.d.

[`delete`](#delete) `service`

Delete the `service` from the `runlevel` or the current one if none given.

[`show`](#show)

Show all enabled services and the runlevels they belong to. If you specify runlevels to show, then only those will be included in the output.

[`-v`](#v), `--verbose`

Show all services.

[`-u`](#u), `--update`

Forces an update of the dependency tree cache. This may be needed in the event of clock skew (a file in /etc is newer than the system clock).

If the `-s`, `--stack` option is given then the dependency we add or remove must be another runlevel. This allows inheritance of runlevels.

If the `-a,` `--all` option is given, we remove the service or runlevel from all runlevels. This is useful, for example, to clean up the dangling symlinks after a service is removed.

# [SEE ALSO](#SEE_ALSO)

[openrc(8)](/man/os/openrc/openrc.8), [openrc-run(8)](/man/os/openrc/openrc-run.8), [rc-status(8)](/man/os/openrc/rc-status.8)

# [AUTHORS](#AUTHORS)

Roy Marples &lt;roy@marples.name&gt;  
The OpenRC Team &lt;openrc@gentoo.org&gt;

January 13, 2014 OpenRC

---

Document: rc-update(8) from openrc 0.64.1-r2 (Chainguard OS)
Source: https://github.com/OpenRC/openrc
