2015-12-05 04:22:19 +05:30
|
|
|
.\" Copyright (c) 2007-2015 The OpenRC Authors.
|
|
|
|
.\" See the Authors file at the top-level directory of this distribution and
|
|
|
|
.\" https://github.com/OpenRC/openrc/blob/master/AUTHORS
|
2007-12-17 15:44:54 +05:30
|
|
|
.\"
|
2015-12-05 04:22:19 +05:30
|
|
|
.\" This file is part of OpenRC. It is subject to the license terms in
|
|
|
|
.\" the LICENSE file found in the top-level directory of this
|
|
|
|
.\" distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
|
|
|
|
.\" This file may not be copied, modified, propagated, or distributed
|
|
|
|
.\" except according to the terms contained in the LICENSE file.
|
2007-12-17 15:44:54 +05:30
|
|
|
.\"
|
2014-01-13 20:48:40 +05:30
|
|
|
.Dd Jan 13, 2014
|
2007-12-17 15:44:54 +05:30
|
|
|
.Dt RC-UPDATE 8 SMM
|
|
|
|
.Os OpenRC
|
|
|
|
.Sh NAME
|
|
|
|
.Nm rc-update
|
2012-01-22 05:47:42 +05:30
|
|
|
.Nd add and remove services to and from a runlevel
|
2007-12-17 15:44:54 +05:30
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2009-05-02 16:56:45 +05:30
|
|
|
.Op Fl s , -stack
|
2008-01-15 15:20:14 +05:30
|
|
|
.Ar add
|
2007-12-17 15:44:54 +05:30
|
|
|
.Ar service
|
|
|
|
.Op Ar runlevel ...
|
|
|
|
.Nm
|
2009-05-02 16:56:45 +05:30
|
|
|
.Op Fl s , -stack
|
2014-01-13 20:48:40 +05:30
|
|
|
.Op Fl a , -all
|
2008-01-15 15:20:14 +05:30
|
|
|
.Ar delete
|
2007-12-17 15:44:54 +05:30
|
|
|
.Ar service
|
|
|
|
.Op Ar runlevel ...
|
|
|
|
.Nm
|
2009-01-13 05:23:13 +05:30
|
|
|
.Op Fl u , -update
|
2007-12-17 15:44:54 +05:30
|
|
|
.Op Fl v , -verbose
|
2008-01-15 15:20:14 +05:30
|
|
|
.Ar show
|
2007-12-17 15:44:54 +05:30
|
|
|
.Op Ar runlevel ...
|
|
|
|
.Sh DESCRIPTION
|
2012-01-22 05:47:42 +05:30
|
|
|
OpenRC uses named runlevels. Rather than editing some obscure
|
2007-12-17 15:44:54 +05:30
|
|
|
file or managing a directory of symlinks,
|
|
|
|
.Nm
|
|
|
|
exists to quickly add or delete services to and from from different runlevels.
|
|
|
|
All services must reside in the
|
|
|
|
.Pa /etc/init.d
|
|
|
|
or
|
|
|
|
.Pa /usr/local/etc/init.d
|
2009-05-02 16:56:45 +05:30
|
|
|
directories.
|
2013-12-22 02:21:11 +05:30
|
|
|
They must also be standard OpenRC scripts, meaning they must use
|
|
|
|
openrc-run.
|
2007-12-17 15:44:54 +05:30
|
|
|
.Pp
|
|
|
|
.Bl -tag -width "Fl a , -delete service"
|
2009-01-13 05:23:13 +05:30
|
|
|
.It Ar add Ar service
|
2007-12-17 15:44:54 +05:30
|
|
|
Add the
|
|
|
|
.Ar service
|
|
|
|
to the
|
|
|
|
.Ar runlevel
|
|
|
|
or the current one if none given.
|
|
|
|
Services added to the boot runlevel must exist in
|
|
|
|
.Pa /etc/init.d .
|
2008-01-15 15:20:14 +05:30
|
|
|
.It Ar delete Ar service
|
2007-12-17 15:44:54 +05:30
|
|
|
Delete the
|
|
|
|
.Ar service
|
|
|
|
from the
|
|
|
|
.Ar runlevel
|
|
|
|
or the current one if none given.
|
2008-01-15 15:20:14 +05:30
|
|
|
.It Ar show
|
2007-12-17 15:44:54 +05:30
|
|
|
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.
|
|
|
|
.It Fl v , -verbose
|
|
|
|
Show all services.
|
2009-01-13 05:23:13 +05:30
|
|
|
.It Fl u , -update
|
|
|
|
Forces an update of the dependency tree cache.
|
2009-02-13 18:22:29 +05:30
|
|
|
This may be needed in the event of clock skew (a file in /etc is newer than the
|
2009-01-13 05:23:13 +05:30
|
|
|
system clock).
|
2007-12-17 15:44:54 +05:30
|
|
|
.El
|
2009-05-02 16:56:45 +05:30
|
|
|
.Pp
|
|
|
|
If the
|
|
|
|
.Fl s , -stack
|
|
|
|
option is given then we either add or remove the runlevel from the runlevel.
|
|
|
|
This allows inheritance of runlevels.
|
2014-11-22 23:11:10 +05:30
|
|
|
.Pp
|
2014-01-13 20:48:40 +05:30
|
|
|
If the
|
|
|
|
.Fl 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.
|
2007-12-17 15:44:54 +05:30
|
|
|
.Sh SEE ALSO
|
2013-12-12 05:09:38 +05:30
|
|
|
.Xr openrc 8 ,
|
2013-12-22 02:21:11 +05:30
|
|
|
.Xr openrc-run 8 ,
|
2007-12-17 15:44:54 +05:30
|
|
|
.Xr rc-status 8
|
|
|
|
.Sh AUTHORS
|
2008-12-31 00:38:51 +05:30
|
|
|
.An Roy Marples <roy@marples.name>
|
2014-01-13 20:48:40 +05:30
|
|
|
.An The OpenRC Team <openrc@gentoo.org>
|