Commit | Line | Data |
---|---|---|
076c36c8 C |
1 | .TH SAVECORE 8 "28 April 1981" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | savecore \- save a core dump of the operating system | |
5 | .SH SYNOPSIS | |
6 | .B /etc/savecore | |
7 | .I dirname | |
8 | [ | |
9 | .I system | |
10 | ] | |
11 | .SH DESCRIPTION | |
12 | .I Savecore | |
13 | is meant to be called near the end of the /etc/rc file. Its function | |
14 | is to save the core dump of the system (assuming one was made) and to | |
15 | write a reboot message in the shutdown log. | |
16 | .PP | |
17 | Savecore checks the core dump to be certain it corresponds with the | |
18 | current running unix. If it does it saves the core image in the file | |
19 | .IR dirname /vmcore.n | |
20 | and it's brother, the namelist, | |
21 | .IR dirname /vmunix.n | |
22 | The trailing ".n" in the pathnames is replaced by a number which grows | |
23 | every time | |
24 | .I savecore | |
25 | is run in that directory. | |
26 | .PP | |
27 | Before savecore writes out a core image, it reads a number from the file | |
28 | .IR dirname /minfree. | |
29 | If there are fewer free blocks on the filesystem | |
30 | which contains | |
31 | .I dirname | |
32 | than the number obtained from the minfree file, the core dump is not done. | |
33 | If the minfree file does not exist, savecore always writes out the core | |
34 | file (assuming that a core dump was taken). | |
35 | .PP | |
36 | .I Savecore | |
37 | also writes a reboot message in the shut down log. If the system crashed | |
38 | as a result of a panic, | |
39 | .I savecore | |
40 | records the panic string in the shut down log too. | |
41 | .PP | |
42 | If the core dump was from a system other than /vmunix, the name | |
43 | of that system must be supplied as | |
44 | .IR sysname . | |
45 | .SH FILES | |
46 | .DT | |
47 | /usr/adm/shutdownlog shut down log | |
48 | .br | |
49 | /vmunix current UNIX | |
50 | .SH BUGS | |
51 | Can be fooled into thinking a core dump is the wrong size. |