mv intro.4 to netintro.4, it hid {vax,tahoe}/intro.4
[unix-history] / usr / src / share / man / man8 / rc.8
CommitLineData
3f4c195c
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
16916422 5.\" @(#)rc.8 6.1 (Berkeley) %G%
3f4c195c 6.\"
16916422 7.TH RC 8 ""
3f4c195c
KM
8.UC 4
9.SH NAME
10rc \- command script for auto-reboot and daemons
11.SH SYNOPSIS
12.B /etc/rc
2951b510
KM
13.br
14.B /etc/rc.local
3f4c195c
KM
15.SH DESCRIPTION
16.I Rc
2951b510
KM
17is the command script which controls the automatic reboot and
18.I rc.local
19is the script holding commands which are pertinent only
20to a specific site.
3f4c195c
KM
21.PP
22When an automatic reboot is in progress,
23.I rc
24is invoked with the argument
25.I autoboot
26and runs a
27.I fsck
28with option
29.B \-p
30to ``preen'' all the disks of minor inconsistencies resulting
31from the last system shutdown and to check for serious inconsistencies
32caused by hardware or software failure.
33If this auto-check and repair succeeds, then the second part of
34.I rc
35is run.
36.PP
37The second part of
38.I rc,
39which is run after a auto-reboot succeeds and also if
40.I rc
41is invoked when a single user shell terminates (see
42.IR init (8)),
43starts all the daemons on the system, preserves editor files
44and clears the scratch directory
45.B /tmp.
2951b510
KM
46.I Rc.local
47is executed immediately before any other commands after a successful
48.IR fsck .
49Normally, the first commands placed in the
50.I rc.local
51file define the machine's name, using
52.IR hostname (1),
53and save any possible core image that might have been
54generated as a result of a system crash,
55.IR savecore (8).
56The latter command is included in the
57.I rc.local
58file because the directory in which core dumps are saved
59is usually site specific.
3f4c195c 60.SH SEE ALSO
2951b510
KM
61init(8),
62reboot(8),
63savecore(8)
3f4c195c 64.SH BUGS