svn commit: r190217 - in stable/7/etc: defaults rc.d
Craig Rodrigues
rodrigc at FreeBSD.org
Sat Mar 21 14:16:06 PDT 2009
Author: rodrigc
Date: Sat Mar 21 21:16:05 2009
New Revision: 190217
URL: http://svn.freebsd.org/changeset/base/190217
Log:
MFC r182460:
Add the ability to run /usr/sbin/crashinfo on a new core dump automatically
during boot. Right now this is disabled by default, but it can be enabled
by setting 'crashinfo_enable=YES' in rc.conf.
Modified:
stable/7/etc/defaults/rc.conf
stable/7/etc/rc.d/savecore
Modified: stable/7/etc/defaults/rc.conf
==============================================================================
--- stable/7/etc/defaults/rc.conf Sat Mar 21 21:12:16 2009 (r190216)
+++ stable/7/etc/defaults/rc.conf Sat Mar 21 21:16:05 2009 (r190217)
@@ -542,6 +542,8 @@ chkprintcap_flags="-d" # Create missing
dumpdev="AUTO" # Device to crashdump to (device name, AUTO, or NO).
dumpdir="/var/crash" # Directory where crash dumps are to be stored
savecore_flags="" # Used if dumpdev is enabled above, and present.
+crashinfo_enable="NO" # Automatically generate crash dump summary.
+crashinfo_program="/usr/sbin/crashinfo" # Script to generate crash dump summary.
enable_quotas="NO" # turn on quotas on startup (or NO).
check_quotas="YES" # Check quotas on startup (or NO).
quotaon_flags="-a" # Turn quotas on for all file systems (if enabled)
Modified: stable/7/etc/rc.d/savecore
==============================================================================
--- stable/7/etc/rc.d/savecore Sat Mar 21 21:12:16 2009 (r190216)
+++ stable/7/etc/rc.d/savecore Sat Mar 21 21:16:05 2009 (r190217)
@@ -54,6 +54,9 @@ savecore_start()
{
echo "Checking for core dump on ${dumpdev}..."
savecore ${savecore_flags} ${dumpdir} ${dumpdev}
+ if checkyesno crashinfo_enable; then
+ ${crashinfo_program} -d ${dumpdir}
+ fi
}
load_rc_config $name
More information about the svn-src-stable-7
mailing list