Commit | Line | Data |
---|---|---|
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 | |
10 | rc \- 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 |
17 | is the command script which controls the automatic reboot and |
18 | .I rc.local | |
19 | is the script holding commands which are pertinent only | |
20 | to a specific site. | |
3f4c195c KM |
21 | .PP |
22 | When an automatic reboot is in progress, | |
23 | .I rc | |
24 | is invoked with the argument | |
25 | .I autoboot | |
26 | and runs a | |
27 | .I fsck | |
28 | with option | |
29 | .B \-p | |
30 | to ``preen'' all the disks of minor inconsistencies resulting | |
31 | from the last system shutdown and to check for serious inconsistencies | |
32 | caused by hardware or software failure. | |
33 | If this auto-check and repair succeeds, then the second part of | |
34 | .I rc | |
35 | is run. | |
36 | .PP | |
37 | The second part of | |
38 | .I rc, | |
39 | which is run after a auto-reboot succeeds and also if | |
40 | .I rc | |
41 | is invoked when a single user shell terminates (see | |
42 | .IR init (8)), | |
43 | starts all the daemons on the system, preserves editor files | |
44 | and clears the scratch directory | |
45 | .B /tmp. | |
2951b510 KM |
46 | .I Rc.local |
47 | is executed immediately before any other commands after a successful | |
48 | .IR fsck . | |
49 | Normally, the first commands placed in the | |
50 | .I rc.local | |
51 | file define the machine's name, using | |
52 | .IR hostname (1), | |
53 | and save any possible core image that might have been | |
54 | generated as a result of a system crash, | |
55 | .IR savecore (8). | |
56 | The latter command is included in the | |
57 | .I rc.local | |
58 | file because the directory in which core dumps are saved | |
59 | is usually site specific. | |
3f4c195c | 60 | .SH SEE ALSO |
2951b510 KM |
61 | init(8), |
62 | reboot(8), | |
63 | savecore(8) | |
3f4c195c | 64 | .SH BUGS |