xref: /dragonfly/sbin/rcrun/rcrun.8 (revision d4ef6694)
1.\"
2.\" Copyright (c) 2007 The DragonFly Project.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\"
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in
12.\"    the documentation and/or other materials provided with the
13.\"    distribution.
14.\" 3. Neither the name of The DragonFly Project nor the names of its
15.\"    contributors may be used to endorse or promote products derived
16.\"    from this software without specific, prior written permission.
17.\"
18.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
22.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
23.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
24.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
28.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.Dd November 17, 2014
32.Dt RCRUN 8
33.Os
34.Sh NAME
35.Nm rcrun ,
36.Nm rcstart ,
37.Nm rcforce ,
38.Nm rcfast ,
39.Nm rcone ,
40.Nm rcstop ,
41.Nm rcrestart ,
42.Nm rcreload ,
43.Nm rcstatus ,
44.Nm rcvar ,
45.Nm rcdisable ,
46.Nm rcenable ,
47.Nm rclist
48.Nd rc script control utility
49.Sh SYNOPSIS
50.Nm rcrun
51.Cm command Ar script ...
52.Nm rcstart
53.Ar script ...
54.Nm rcforce
55.Ar script ...
56.Nm rcfast
57.Ar script ...
58.Nm rcone
59.Ar script ...
60.Nm rcstop
61.Ar script ...
62.Nm rcrestart
63.Ar script ...
64.Nm rcreload
65.Ar script ...
66.Nm rcstatus
67.Ar script ...
68.Nm rcvar
69.Ar script ...
70.Nm rcdisable
71.Ar script ...
72.Nm rcenable
73.Ar script ...
74.Nm rclist
75.Op Ar script ...
76.Sh DESCRIPTION
77The
78.Nm
79utility provides a number of commands for controlling
80.Xr rc 8
81scripts.
82.Pp
83The
84.Cm start ,
85.Cm forcestart ,
86.Cm faststart ,
87.Cm onestart ,
88.Cm stop ,
89.Cm restart ,
90.Cm reload ,
91.Cm status ,
92and
93.Cm rcvar
94commands are just passed to the scripts.
95See
96.Xr rc 8
97for more information on these commands.
98.Pp
99The remaining commands are:
100.Bl -tag -width ".Cm disable"
101.It Cm disable
102Sets the corresponding
103.Va _enable
104variable in
105.Xr rc.conf 5
106to
107.Dq Li NO
108and runs the
109.Cm stop
110command.
111.It Cm enable
112Sets the corresponding
113.Va _enable
114variable in
115.Xr rc.conf 5
116to
117.Dq Li YES
118and runs the
119.Cm start
120command.
121.It Cm list
122Shows the status of the specified scripts.
123If no argument is specified, the status of all scripts is shown.
124.El
125.Pp
126.Nm Rcstart ,
127.Nm rcforce ,
128.Nm rcfast ,
129.Nm rcone ,
130.Nm rcstop ,
131.Nm rcrestart ,
132.Nm rcreload ,
133.Nm rcstatus ,
134.Nm rcvar ,
135.Nm rcdisable ,
136.Nm rcenable
137and
138.Nm rclist
139are shortcuts for
140.Nm Ap s
141commands.
142.Sh SEE ALSO
143.Xr rc.conf 5 ,
144.Xr rc 8 ,
145.Xr rc.subr 8
146.Sh HISTORY
147The
148.Nm
149script first appeared in
150.Dx 1.0 .
151.Sh AUTHORS
152.An Matt Dillon
153