mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Having two knobs until you get a kernel core dump saved is silly.
Leave dumpdev, but kill the savecore variable. Thus, it's still off by default, but all you need is enabling dumpdev now. phk's old argument that savecore might inadvertendly fill up the disk no longer counts, savecore now correctly obeyes a `minfree' file, and we ship our systems with such a file that even has a reasonable default.
This commit is contained in:
parent
6ca2402eef
commit
48811ae778
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23939
4
etc/rc
4
etc/rc
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
# $Id: rc,v 1.113 1997/02/23 09:20:46 peter Exp $
|
||||
# From: @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
@ -157,7 +157,7 @@ fi
|
||||
|
||||
# /var/crash should be a directory or a symbolic link
|
||||
# to the crash directory if core dumps are to be saved.
|
||||
if [ "X${savecore}" = X"YES" -a -d /var/crash ]; then
|
||||
if [ -d /var/crash ]; then
|
||||
echo -n checking for core dump...
|
||||
savecore /var/crash
|
||||
fi
|
||||
|
@ -4,7 +4,7 @@
|
||||
# This is sysconfig - a file full of useful variables that you can set
|
||||
# to change the default startup behavior of your system.
|
||||
#
|
||||
# $Id$
|
||||
# $Id: sysconfig,v 1.60 1997/02/23 09:20:54 peter Exp $
|
||||
|
||||
######################### Start Of Local Configuration Section ###########
|
||||
|
||||
@ -235,9 +235,6 @@ xtend=NO
|
||||
# in /etc/fstab.
|
||||
dumpdev=NO
|
||||
|
||||
# Set to YES if you want kernel crashdumps to be saved for debugging
|
||||
savecore=NO
|
||||
|
||||
# Set to an additional swapfile you'd like to have added to preallocated swap
|
||||
# space during system boot (or NO for none).
|
||||
swapfile=NO
|
||||
|
Loading…
Reference in New Issue
Block a user