|
|
1.1 ! root 1: .\" Copyright (c) 1980 The Regents of the University of California. ! 2: .\" All rights reserved. ! 3: .\" ! 4: .\" Redistribution and use in source and binary forms are permitted provided ! 5: .\" that: (1) source distributions retain this entire copyright notice and ! 6: .\" comment, and (2) distributions including binaries display the following ! 7: .\" acknowledgement: ``This product includes software developed by the ! 8: .\" University of California, Berkeley and its contributors'' in the ! 9: .\" documentation or other materials provided with the distribution and in ! 10: .\" all advertising materials mentioning features or use of this software. ! 11: .\" Neither the name of the University nor the names of its contributors may ! 12: .\" be used to endorse or promote products derived from this software without ! 13: .\" specific prior written permission. ! 14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 17: .\" ! 18: .\" @(#)savecore.8 6.5 (Berkeley) 6/24/90 ! 19: .\" ! 20: .TH SAVECORE 8 "June 24, 1990" ! 21: .UC 4 ! 22: .SH NAME ! 23: savecore \- save a core dump of the operating system ! 24: .SH SYNOPSIS ! 25: .B savecore ! 26: .I dirname ! 27: [ ! 28: .I system ! 29: ] ! 30: .SH DESCRIPTION ! 31: .I Savecore ! 32: is meant to be called near the end of the /etc/rc file. Its function ! 33: is to save the core dump of the system (assuming one was made) and to ! 34: write a reboot message in the shutdown log. ! 35: .PP ! 36: Savecore checks the core dump to be certain it corresponds with the ! 37: current running unix. If it does it saves the core image in the file ! 38: .IR dirname /vmcore.n ! 39: and its brother, the namelist, ! 40: .IR dirname /vmunix.n ! 41: The trailing ".n" in the pathnames is replaced by a number which grows ! 42: every time ! 43: .I savecore ! 44: is run in that directory. ! 45: .PP ! 46: Before savecore writes out a core image, it reads a number from the file ! 47: .IR dirname /minfree. ! 48: If the number of free kilobytes on the filesystem which contains ! 49: .I dirname ! 50: is less than the number obtained from the minfree file, ! 51: the core dump is not saved. ! 52: If the minfree file does not exist, savecore always writes out the core ! 53: file (assuming that a core dump was taken). ! 54: .PP ! 55: .I Savecore ! 56: also logs a reboot message using facility LOG_AUTH (see ! 57: .IR syslog (3)) ! 58: If the system crashed as a result of a panic, ! 59: .I savecore ! 60: logs the panic string too. ! 61: .PP ! 62: If the core dump was from a system other than /vmunix, the name ! 63: of that system must be supplied as ! 64: .IR sysname . ! 65: .SH FILES ! 66: .DT ! 67: /vmunix current UNIX ! 68: .SH BUGS ! 69: Can be fooled into thinking a core dump is the wrong size.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.