Unix/Linux Go Back    

BSD 2.11 - man page for savecore (bsd section 8)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

SAVECORE(8)									      SAVECORE(8)

       savecore - save a core dump of the operating system

       savecore dirname [ system ]

       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 (if one was made) and to write a reboot message in  the  shut-
       down log.

       It  saves  the  core  image  in	the file dirname/core.n and its corresponding namelist in
       dirname/unix.n.	The second argument is the namelist for the system which  made	the  core
       image;  the  current system is always assumed to be /unix.  The trailing ".n" in the path-
       names 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 file system 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.

       If savecore detects that the system time is wrong because of a crash (the time in the core
       image  is  after  the current time), it will reset the system time to its best estimate of
       the time, which is the time in the core image plus the elapsed time since the reboot.   It
       announces the time that it set when this occurs.

       /usr/adm/shutdownlogshutdown log
       /unix		   current UNIX

       The method used to determine whether a dump is present, and to prevent the same core image
       from being saved multiple times, is not elegant.  This information  should  be  passed  to
       init  by the system; however, this is difficult because the system may have to be rebooted
       a second time if the root filesystem is patched.

3rd Berkeley Distribution							      SAVECORE(8)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 03:10 AM.