summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2001-03-12 05:18:03 +0000
committerdougb <dougb@FreeBSD.org>2001-03-12 05:18:03 +0000
commit4b267fa5fd6ee80cc43873707a7e963b32d6d075 (patch)
treec017e5a990fc289b709e6c37547a07dd44fd17e1 /etc
parent06f90766a4b38d32cc5dbdd71565abcff40c0f8c (diff)
downloadFreeBSD-src-4b267fa5fd6ee80cc43873707a7e963b32d6d075.zip
FreeBSD-src-4b267fa5fd6ee80cc43873707a7e963b32d6d075.tar.gz
Add flags option for savecore.
Submitted by: David A. Panariti <davep@who.net>
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/rc.conf1
-rw-r--r--etc/rc4
2 files changed, 3 insertions, 2 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 816b376..564c664 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 3d95f8a..843e1ae 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
OpenPOWER on IntegriCloud