View | Details | Raw Unified | Return to bug 30596
Collapse All | Expand All

(-)rc (-3 / +3 lines)
Lines 485-501 Link Here
485
fi
485
fi
486
486
487
# Enable dumpdev so that savecore can see it.
487
# Enable dumpdev so that savecore can see it.
488
# /var/crash should be a directory or a symbolic link
488
# ${savecore_dir} should be a directory or a symbolic link
489
# to the crash directory if core dumps are to be saved.
489
# to the crash directory if core dumps are to be saved.
490
#
490
#
491
case ${dumpdev} in
491
case ${dumpdev} in
492
[Nn][Oo] | '')
492
[Nn][Oo] | '')
493
	;;
493
	;;
494
*)
494
*)
495
	if [ -e "${dumpdev}" -a -d /var/crash ]; then
495
	if [ -e "${dumpdev}" -a -d "${savecore_dir}" ]; then
496
		/sbin/dumpon -v ${dumpdev}
496
		/sbin/dumpon -v ${dumpdev}
497
		echo -n 'Checking for core dump: '
497
		echo -n 'Checking for core dump: '
498
		/sbin/savecore ${savecore_flags} /var/crash
498
		/sbin/savecore ${savecore_flags} ${savecore_dir}
499
	fi
499
	fi
500
	;;
500
	;;
501
esac
501
esac
(-)rc.conf (+1 lines)
Lines 326-331 Link Here
326
diskcheckd_flags=""	# Flags to diskcheckd(8).
326
diskcheckd_flags=""	# Flags to diskcheckd(8).
327
dumpdev="NO"		# Device name to crashdump to (or NO).
327
dumpdev="NO"		# Device name to crashdump to (or NO).
328
savecore_flags="" 	# Used if dumpdev is enabled above, and present.
328
savecore_flags="" 	# Used if dumpdev is enabled above, and present.
329
savecore_dir="/var/crash" # Where to put the kernel core dumps.
329
enable_quotas="NO"      # turn on quotas on startup (or NO).
330
enable_quotas="NO"      # turn on quotas on startup (or NO).
330
check_quotas="YES"	# Check quotas on startup (or NO).
331
check_quotas="YES"	# Check quotas on startup (or NO).
331
accounting_enable="NO"	# Turn on process accounting (or NO).
332
accounting_enable="NO"	# Turn on process accounting (or NO).

Return to bug 30596