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 July 16, 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 rcvar , 44.Nm rcdisable , 45.Nm rcenable , 46.Nm rclist 47.Nd rc script control utility 48.Sh SYNOPSIS 49.Nm rcrun 50.Cm command Ar script ... 51.Nm rcstart 52.Ar script ... 53.Nm rcforce 54.Ar script ... 55.Nm rcfast 56.Ar script ... 57.Nm rcone 58.Ar script ... 59.Nm rcstop 60.Ar script ... 61.Nm rcrestart 62.Ar script ... 63.Nm rcreload 64.Ar script ... 65.Nm rcvar 66.Ar script ... 67.Nm rcdisable 68.Ar script ... 69.Nm rcenable 70.Ar script ... 71.Nm rclist 72.Op Ar script ... 73.Sh DESCRIPTION 74The 75.Nm 76utility provides a number of commands for controlling 77.Xr rc 8 78scripts. 79.Pp 80The 81.Cm start , 82.Cm forcestart , 83.Cm faststart , 84.Cm onestart , 85.Cm stop , 86.Cm restart , 87.Cm reload , 88and 89.Cm rcvar 90commands are just passed to the scripts. 91See 92.Xr rc 8 93for more information on these commands. 94.Pp 95The remaining commands are: 96.Bl -tag -width ".Cm disable" 97.It Cm disable 98Sets the corresponding 99.Va _enable 100variable in 101.Xr rc.conf 5 102to 103.Dq Li NO 104and runs the 105.Cm stop 106command. 107.It Cm enable 108Sets the corresponding 109.Va _enable 110variable in 111.Xr rc.conf 5 112to 113.Dq Li YES 114and runs the 115.Cm start 116command. 117.It Cm list 118Shows the status of the specified scripts. 119If no argument is specified, the status of all scripts is shown. 120.El 121.Pp 122.Nm Rcstart , 123.Nm rcforce , 124.Nm rcfast , 125.Nm rcone , 126.Nm rcstop , 127.Nm rcrestart , 128.Nm rcreload , 129.Nm rcvar , 130.Nm rcdisable , 131.Nm rcenable 132and 133.Nm rclist 134are shortcuts for 135.Nm Ap s 136commands. 137.Sh SEE ALSO 138.Xr rc.conf 5 , 139.Xr rc 8 , 140.Xr rc.subr 8 141.Sh HISTORY 142The 143.Nm 144script first appeared in 145.Dx 1.0 . 146.Sh AUTHORS 147.An Matt Dillon 148