socsvn commit: r236316 - in
soc2012/tzabal/client-side/akcrs-head/etc: defaults rc.d
tzabal at FreeBSD.org
tzabal at FreeBSD.org
Thu May 24 20:21:42 UTC 2012
Author: tzabal
Date: Thu May 24 20:21:39 2012
New Revision: 236316
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=236316
Log:
Three (3) rc variables added to /etc/defaults/rc.conf.
* crashreport_enable
* crashreport_program
* email
The crashreport program added under /usr.sbin/crashreport.
It contains the crashreport.sh script and the Makefile.
The script crashreport.sh is under construction.
The rc.d script savecore has been modified in order to call crashreport after
extracting a new core dump.
Modified:
soc2012/tzabal/client-side/akcrs-head/etc/defaults/rc.conf
soc2012/tzabal/client-side/akcrs-head/etc/rc.d/savecore
Modified: soc2012/tzabal/client-side/akcrs-head/etc/defaults/rc.conf
==============================================================================
--- soc2012/tzabal/client-side/akcrs-head/etc/defaults/rc.conf Thu May 24 19:48:15 2012 (r236315)
+++ soc2012/tzabal/client-side/akcrs-head/etc/defaults/rc.conf Thu May 24 20:21:39 2012 (r236316)
@@ -604,6 +604,9 @@
savecore_flags="" # Used if dumpdev is enabled above, and present.
crashinfo_enable="YES" # Automatically generate crash dump summary.
crashinfo_program="/usr/sbin/crashinfo" # Script to generate crash dump summary.
+crashreport_enable="NO" # Automatically generate crash dump summary.
+crashreport_program="/usr/sbin/crashreport" # Script to send kernel crash report
+email="" # System administrator email address.
quota_enable="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: soc2012/tzabal/client-side/akcrs-head/etc/rc.d/savecore
==============================================================================
--- soc2012/tzabal/client-side/akcrs-head/etc/rc.d/savecore Thu May 24 19:48:15 2012 (r236315)
+++ soc2012/tzabal/client-side/akcrs-head/etc/rc.d/savecore Thu May 24 20:21:39 2012 (r236316)
@@ -67,6 +67,9 @@
if checkyesno crashinfo_enable; then
${crashinfo_program} -d ${dumpdir}
fi
+ if checkyesno crashreport_enable; then
+ ${crashreport_program} -d ${dumpdir} -e ${email}
+ fi
else
check_startmsgs && echo 'No core dumps found.'
fi
More information about the svn-soc-all
mailing list