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