SAVECORE(1M-SysV) RISC/os Reference Manual SAVECORE(1M-SysV)
NAME
savecore - save a core dump of the operating system
SYNOPSIS
/etc/savecore dirname [ system ]
DESCRIPTION
savecore is meant to be called near the end of the system
initialization process. 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/core.n and its brother, the namel-
ist, dirname/unix.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 the number of free kilo-
bytes on the filesystem which contains dirname is less than
the number obtained from the minfree file, the core dump is
not saved. If the minfree file does not exist, savecore
always writes out the core file (assuming that a core dump
was taken).
savecore also logs a reboot message using facility LOG_AUTH
(see syslog(3)). If the system crashed as a result of a
panic, savecore logs the panic string too.
If the core dump was from a system other than /unix, the
name of that system must be supplied as sysname.
FILES
/unix current UNIX
ERRORS
Can be fooled into thinking a core dump is the wrong size.
Printed 1/15/91 Page 1