LinuxCommandLibrary

rc-update

Add or remove OpenRC services from runlevels

TLDR

List enabled services

$ rc-update
copy
List all services
$ rc-update -v
copy
Add service to runlevel
$ sudo rc-update add [service] [runlevel]
copy
Delete service from runlevel
$ sudo rc-update del [service] [runlevel]
copy
Delete from all runlevels
$ sudo rc-update -a del [service]
copy

SYNOPSIS

rc-update [-v] [add|del] [-a] service [runlevel]

DESCRIPTION

rc-update manages which services start at which runlevels in OpenRC. Runlevels are named groups of services that start together, such as "default" for normal boot or "boot" for early boot services.
The tool creates and removes symlinks that control service startup, similar to how chkconfig works on SysV systems.

PARAMETERS

-v, --verbose

Show all services including disabled
-a, --all
Apply to all runlevels
service
Service name
runlevel
Target runlevel (default, boot, etc.)

COMMANDS

add

Add service to runlevel
del, delete
Remove service from runlevel
show
Show services in runlevels

CAVEATS

OpenRC-specific. Runlevel names vary by distribution. Common runlevels: boot, default, shutdown. Changes take effect on next boot or runlevel change.

HISTORY

rc-update is part of OpenRC, the dependency-based init system primarily used on Gentoo and Alpine Linux.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community