From owner-freebsd-stable Sun Mar 11 19:15:25 2001 Delivered-To: freebsd-stable@freebsd.org Received: from chmls06.mediaone.net (chmls06.mediaone.net [24.147.1.144]) by hub.freebsd.org (Postfix) with ESMTP id 429AC37B718 for ; Sun, 11 Mar 2001 19:15:22 -0800 (PST) (envelope-from davep@who.net) Received: from baloo.ne.mediaone.net (h0040100ccb2f.ne.mediaone.net [24.147.252.120]) by chmls06.mediaone.net (8.11.1/8.11.1) with ESMTP id f2C3FKK10761 for ; Sun, 11 Mar 2001 22:15:20 -0500 (EST) Received: from baloo.ne.mediaone.net (localhost [127.0.0.1]) by baloo.ne.mediaone.net (8.11.3/8.11.1) with ESMTP id f2C3FLa02859 for ; Sun, 11 Mar 2001 22:15:21 -0500 (EST) (envelope-from davep@who.net) Message-Id: <200103120315.f2C3FLa02859@baloo.ne.mediaone.net> To: freebsd-stable@freebsd.org Subject: /etc/rc savecore request Reply-To: "David A. Panariti" X-Attribution: davep Date: Sun, 11 Mar 2001 22:15:21 -0500 From: "David A. Panariti" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm not certain if this is the place to post this, but I don't think it qualifies as a bug. Here are 2 patches /etc/rc and /etc/defaults/rc.conf to implement a request for a microscopic change wrt the calling of savecore: --- rc.orig Sun Mar 11 21:50:03 2001 +++ rc Sun Mar 11 21:50:43 2001 @@ -379,7 +379,7 @@ if [ -e "${dumpdev}" -a -d /var/crash ]; then dumpon -v ${dumpdev} echo -n 'Checking for core dump: ' - savecore /var/crash + savecore ${savecore_flags} /var/crash fi ;; esac And the corresponding change in /etc/defaults/rc.conf: --- rc.conf.orig Sun Mar 11 21:56:51 2001 +++ rc.conf Sun Mar 11 22:01:20 2001 @@ -307,6 +307,7 @@ sendmail_enable="YES" # Run the sendmail daemon (or NO). sendmail_flags="-bd -q30m" # Flags to sendmail (if enabled) dumpdev="NO" # Device name to crashdump to (or NO). +savecore_flags="" # Flags to savecore (if dump exists). 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). Over the years all of my /etc hacks have been moved into well considered config files. This change will mean that I will not have to edit any of the non-config type files. thanks, davep -- Whom computers would destroy, they must first drive mad. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message