Deleted Added
full compact
rc.8 (162404) rc.8 (169668)
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

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)rc.8 8.2 (Berkeley) 12/11/93
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

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

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)rc.8 8.2 (Berkeley) 12/11/93
36.\" $FreeBSD: head/share/man/man8/rc.8 162404 2006-09-18 15:24:20Z ru $
36.\" $FreeBSD: head/share/man/man8/rc.8 169668 2007-05-18 12:04:41Z mtm $
37.\"
37.\"
38.Dd December 19, 2005
38.Dd May 18, 2007
39.Dt RC 8
40.Os
41.Sh NAME
42.Nm rc
43.Nd command scripts for auto-reboot and daemon startup
44.Sh SYNOPSIS
45.Nm
46.Nm rc.conf

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

244Scripts that are to be sourced into the current shell rather than a subshell
245have a
246.Pa .sh
247suffix.
248Extreme care must be taken in using this, as the startup sequence will
249terminate if the script does.
250.It Pa bar
251Scripts that are sourced in a subshell.
39.Dt RC 8
40.Os
41.Sh NAME
42.Nm rc
43.Nd command scripts for auto-reboot and daemon startup
44.Sh SYNOPSIS
45.Nm
46.Nm rc.conf

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

244Scripts that are to be sourced into the current shell rather than a subshell
245have a
246.Pa .sh
247suffix.
248Extreme care must be taken in using this, as the startup sequence will
249terminate if the script does.
250.It Pa bar
251Scripts that are sourced in a subshell.
252These can stop the boot if necessary with the following shell
253commands:
254.Bd -literal -offset indent
255if [ "$autoboot" = yes ]; then
256 kill -TERM $$
257fi
258exit 1
259.Ed
260.Pp
261Note that this should be used extremely sparingly!
252The boot does not stop if such a script terminates with a non-zero status,
253but a script can stop the boot if necessary by invoking the
254.Fn stop_boot
255function (from
256.Xr rc.subr 8 ).
262.El
263.Pp
264Each script should contain
265.Xr rcorder 8
266keywords, especially an appropriate
267.Dq Li PROVIDE
268entry, and if necessary
269.Dq Li REQUIRE

--- 294 unchanged lines hidden ---
257.El
258.Pp
259Each script should contain
260.Xr rcorder 8
261keywords, especially an appropriate
262.Dq Li PROVIDE
263entry, and if necessary
264.Dq Li REQUIRE

--- 294 unchanged lines hidden ---