From nrahlstr@portage.winternet.com Tue Oct  5 21:12:38 1999
Return-Path: <nrahlstr@portage.winternet.com>
Received: from portage.winternet.com (ppp-67-198.dialup.winternet.com [204.246.67.198])
	by hub.freebsd.org (Postfix) with ESMTP id 5E4CD14CC4
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Oct 1999 21:12:19 -0700 (PDT)
	(envelope-from nrahlstr@portage.winternet.com)
Received: (from nrahlstr@localhost)
	by portage.winternet.com (8.9.3/8.9.3) id XAA04056;
	Tue, 5 Oct 1999 23:11:41 GMT
	(envelope-from nrahlstr)
Message-Id: <199910052311.XAA04056@portage.winternet.com>
Date: Tue, 5 Oct 1999 23:11:41 GMT
From: Nathan Ahlstrom <nrahlstr@portage.winternet.com>
Reply-To: nrahlstr@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: rc.conf(5) manpage mentions defunct savecore_enable option
X-Send-Pr-Version: 3.2

>Number:         14152
>Category:       conf
>Synopsis:       rc.conf(5) manpage mentions defunct savecore_enable option
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    sheldonh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  5 21:20:01 PDT 1999
>Closed-Date:    Wed Oct 6 02:25:13 PDT 1999
>Last-Modified:  Wed Oct  6 02:26:29 PDT 1999
>Originator:     Nathan Ahlstrom
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
	Home Network
>Environment:

FreeBSD portage.winternet.com 3.3-STABLE FreeBSD 3.3-STABLE #0: Sun Oct  3 17:50:34 GMT 1999     root@portage.winternet.com:/usr/src/sys/compile/PORTAGE  i386

>Description:

	The rc.conf.5 manpage mentions the savecore_enable option.  This
    has been replaced by simply defining a dumpdev. 

>How-To-Repeat:

	Attempt to enable savecore via this option.  Read /etc/rc:

	# enable dumpdev so that savecore can see it
	# /var/crash should be a directory or a symbolic link
	# to the crash directory if core dumps are to be saved.
	if [ "X${dumpdev}" != X"NO" -a -e ${dumpdev} -a -d /var/crash ]; then
        dumpon ${dumpdev}
        echo -n checking for core dump...
        savecore /var/crash
	fi

>Fix:
	
	Here is a patch to rc.conf.5:

Index: rc.conf.5
===================================================================
RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v
retrieving revision 1.27.2.18
diff -u -r1.27.2.18 rc.conf.5
--- rc.conf.5	1999/10/02 21:41:35	1.27.2.18
+++ rc.conf.5	1999/10/05 23:05:30
@@ -986,13 +986,6 @@
 these are the flags to pass to the
 .Xr sendmail 8
 daemon.
-.It Ar savecore_enable
-(bool) If set to
-.Ar YES
-then save kernel crashdumps for debugging purposes when the system
-comes back up after a crash.  Crash images are typically stored in the
-.Pa /var/crash
-directory.
 .It Ar dumpdev
 (str) If not set to
 .Ar NO


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sheldonh 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Oct 6 02:01:00 PDT 1999 
Responsible-Changed-Why:  
I'll take this one. 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Wed Oct 6 02:25:13 PDT 1999 
State-Changed-Why:  
I didn't use the submitted diff, because the dumpdev description was 
inadequate in the absence of the savecore_enable option. See the  
diff (I've committed a similar fix to HEAD and RELENG_3). Thanks for 
reporting this. :-) 
>Unformatted:
