Add flags option for savecore.

Submitted by:	David A. Panariti <davep@who.net>
This commit is contained in:
Doug Barton 2001-03-12 05:18:03 +00:00
parent fd1d7a8a15
commit 670974f3df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74140
2 changed files with 3 additions and 2 deletions

View File

@ -307,6 +307,7 @@ usbd_flags="" # Flags to usbd (if enabled).
sendmail_enable="NO" # Run the sendmail daemon (YES/NO).
sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled)
dumpdev="NO" # Device name to crashdump to (or NO).
savecore_flags="" # Used if dumpdev is enabled above, and present.
enable_quotas="NO" # turn on quotas on startup (or NO).
check_quotas="YES" # Check quotas on startup (or NO).
accounting_enable="NO" # Turn on process accounting (or NO).

4
etc/rc
View File

@ -474,9 +474,9 @@ case ${dumpdev} in
;;
*)
if [ -e "${dumpdev}" -a -d /var/crash ]; then
dumpon -v ${dumpdev}
/sbin/dumpon -v ${dumpdev}
echo -n 'Checking for core dump: '
savecore /var/crash
/sbin/savecore ${savecore_flags} /var/crash
fi
;;
esac