RC-UPDATE(8) | System Manager's Manual (smm) | RC-UPDATE(8) |
rc-update
— add
and remove services to and from a runlevel
rc-update |
[-s , --stack ]
add service
[runlevel ...] |
rc-update |
[-s , --stack ]
[-a , --all ]
delete service
[runlevel ...] |
rc-update |
[-u , --update ]
[-v , --verbose ]
show [runlevel ...] |
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 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.
-v
,
--verbose
-u
,
--update
If the -s
, --stack
option is given then we either add or remove the runlevel from the runlevel.
This allows inheritance of runlevels.
If the -a,
--all
option is given, we remove the service from all runlevels. This is useful,
for example, to clean up the dangling symlinks after a service is
removed.
Roy Marples <roy@marples.name>
The OpenRC Team <openrc@gentoo.org>
January 13, 2014 | OpenRC |