[Sunhelp] Saving core files
    Brian Allgyer 
    brian.allgyer at siliconmetrics.com
       
    Tue Aug 22 10:47:34 CDT 2000
    
    
  
jkennedy at orent.com wrote:
> OK, stupid question but I haven't done this in over a year and a half.
> For the life of me I cannot remember how to set a system up to
> automatically save core file safter a crash.  Has anyone done this
> recently (Solaris 2.6 or 7)???
> Thanks,
> John Kennedy
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
Add this to /etc/rc2.d/S20sysetup file:
##
## Default is to not do a savecore
##
if [ ! -d /var/`uname -n` ]
then mkdir -m 0700 -p /var/`uname -n`
fi
                echo 'checking for crash dump...\c '
savecore /var/`uname -n`
                e0ho ''
Brian
    
    
More information about the SunHELP
mailing list