.TH SAVECORE 8 "28 April 1981"
savecore \- save a core dump of the operating system
is meant to be called near the end of the /etc/rc file. Its function
is to save the core dump of the system (assuming one was made) and to
write a reboot message in the shutdown log.
Savecore checks the core dump to be certain it corresponds with the
current running unix. If it does it saves the core image in the file
and it's brother, the namelist,
The trailing ".n" in the pathnames is replaced by a number which grows
is run in that directory.
Before savecore writes out a core image, it reads a number from the file
If there are fewer free blocks on the filesystem
than the number obtained from the minfree file, the core dump is not done.
If the minfree file does not exist, savecore always writes out the core
file (assuming that a core dump was taken).
also writes a reboot message in the shut down log. If the system crashed
records the panic string in the shut down log too.
If the core dump was from a system other than /vmunix, the name
of that system must be supplied as
/usr/adm/shutdownlog shut down log
Can be fooled into thinking a core dump is the wrong size.