SAVECORE(8) — UNIX Programmer’s Manual
NAME
savecore − save a core dump of the operating system
SYNOPSIS
savecore dirname
DESCRIPTION
Savecore is meant to be called at 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 dirname/vmcore.n and it’s brother, the namelist, dirname/vmunix.n The trailing ".n" in the pathnames is replaced by a number which grows every time savecore is run in that directory.
Before savecore writes out a core image, it reads a number from the file dirname/minfree. If there are fewer free blocks on the filesystem which contains dirname 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).
Savecore also writes a reboot message in the shut down log. If the system crashed as a result of a panic, savecore records the panic string in the shut down log too.
FILES
/usr/adm/shutdownlogShut down log
/vmunixCurrent UNIX
BUGS
4th Berkeley Distribution — @(#)savecore.81.1PreliminaryGER0