rc.8 (b9f4462063d3ab35fa63ec8335de966c77362437) rc.8 (aa3b7a2fbc4687c0a09b6166aa2c2d117989d8fa)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Portions of this manual page are Copyrighted by
5.\" The NetBSD Foundation.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 14 unchanged lines hidden (view full) ---

23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Portions of this manual page are Copyrighted by
5.\" The NetBSD Foundation.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 14 unchanged lines hidden (view full) ---

23.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29.\" SUCH DAMAGE.
30.\"
31.Dd December 27,2023
31.Dd January 31, 2024
32.Dt RC 8
33.Os
34.Sh NAME
35.Nm rc
36.Nd command scripts for auto-reboot and daemon startup
37.Sh SYNOPSIS
38.Nm
39.Nm rc.conf

--- 103 unchanged lines hidden (view full) ---

143.Pa /etc/rc.d/
144that do not have a
145.Dq Li nostart
146KEYWORD (refer to
147.Xr rcorder 8 Ns 's
148.Fl s
149flag).
150.It
32.Dt RC 8
33.Os
34.Sh NAME
35.Nm rc
36.Nd command scripts for auto-reboot and daemon startup
37.Sh SYNOPSIS
38.Nm
39.Nm rc.conf

--- 103 unchanged lines hidden (view full) ---

143.Pa /etc/rc.d/
144that do not have a
145.Dq Li nostart
146KEYWORD (refer to
147.Xr rcorder 8 Ns 's
148.Fl s
149flag).
150.It
151Call each script in turn using
151Call
152.Fn run_rc_scripts
153with the list of scripts to be run.
154.Pp
155For each script that will call
152.Fn run_rc_script
156.Fn run_rc_script
153(from
157(both functions are from
154.Xr rc.subr 8 ) ,
155which sets
156.Va $1
157to
158.Dq Li start ,
159and sources the script in a subshell.
160Stop processing when the script that is the value of the
161.Va $early_late_divider

--- 4 unchanged lines hidden (view full) ---

166exists (in case it is located on a newly mounted file system)
167and adjust the list of KEYWORDs to skip appropriately.
168.It
169Re-run
170.Xr rcorder 8 ,
171this time including the scripts in the
172.Va $local_startup
173directories.
158.Xr rc.subr 8 ) ,
159which sets
160.Va $1
161to
162.Dq Li start ,
163and sources the script in a subshell.
164Stop processing when the script that is the value of the
165.Va $early_late_divider

--- 4 unchanged lines hidden (view full) ---

170exists (in case it is located on a newly mounted file system)
171and adjust the list of KEYWORDs to skip appropriately.
172.It
173Re-run
174.Xr rcorder 8 ,
175this time including the scripts in the
176.Va $local_startup
177directories.
174Ignore everything up to the
175.Va $early_late_divider ,
176then start executing the scripts as described above.
178Call
179.Fn run_rc_scripts
180again with the new list of scripts.
181It will skip any that have already been run and
182execute the rest as described above.
177.It
178If the file
179.Va ${firstboot_sentinel}
180exists, delete it.
181If the file
182.Va ${firstboot_sentinel}-reboot
183also exists (because it was created by a script), then delete it and reboot.
184.El

--- 408 unchanged lines hidden ---
183.It
184If the file
185.Va ${firstboot_sentinel}
186exists, delete it.
187If the file
188.Va ${firstboot_sentinel}-reboot
189also exists (because it was created by a script), then delete it and reboot.
190.El

--- 408 unchanged lines hidden ---