1RC(8) System Manager's Manual RC(8)
2
3
4
6 rc - command script for auto-reboot and daemons
7
9 /etc/rc
10 /etc/rc.local
11
13 Rc is the command script which controls the automatic reboot and
14 rc.local is the script holding commands which are pertinent only to a
15 specific site.
16
17 When an automatic reboot is in progress, rc is invoked with the argu‐
18 ment autoboot and runs a fsck with option -p to ``preen'' all the disks
19 of minor inconsistencies resulting from the last system shutdown and to
20 check for serious inconsistencies caused by hardware or software fail‐
21 ure. If this auto-check and repair succeeds, then the second part of
22 rc is run.
23
24 The second part of rc, which is run after a auto-reboot succeeds and
25 also if rc is invoked when a single user shell terminates (see
26 init(8)), starts all the daemons on the system, preserves editor files
27 and clears the scratch directory /tmp. Rc.local is executed immedi‐
28 ately before any other commands after a successful fsck. Normally, the
29 first commands placed in the rc.local file define the machine's name,
30 using hostname(1), and save any possible core image that might have
31 been generated as a result of a system crash, savecore(8). The latter
32 command is included in the rc.local file because the directory in which
33 core dumps are saved is usually site specific.
34
36 init(8), reboot(8), savecore(8)
37
394th Berkeley Distribution April 27, 1985 RC(8)