From 670974f3df0ffaa3f50438e687a5f34fcf03bf6f Mon Sep 17 00:00:00 2001 From: Doug Barton Date: Mon, 12 Mar 2001 05:18:03 +0000 Subject: [PATCH] Add flags option for savecore. Submitted by: David A. Panariti --- etc/defaults/rc.conf | 1 + etc/rc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index 816b3762179a..564c664f0e6c 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -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). diff --git a/etc/rc b/etc/rc index 3d95f8a925db..843e1ae60ccf 100644 --- a/etc/rc +++ b/etc/rc @@ -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