From owner-freebsd-bugs Sat Sep 15 11:10: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E5C2C37B40C for ; Sat, 15 Sep 2001 11:10:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8FIA0d34777; Sat, 15 Sep 2001 11:10:00 -0700 (PDT) (envelope-from gnats) Received: from noos.fr (e109.dhcp212-198-25.noos.fr [212.198.25.109]) by hub.freebsd.org (Postfix) with ESMTP id C25A737B401 for ; Sat, 15 Sep 2001 11:04:37 -0700 (PDT) Received: (from mux@localhost) by nebula.cybercable.fr (8.11.6/8.11.4) id f8FHd1g02281; Sat, 15 Sep 2001 19:39:01 +0200 (CEST) (envelope-from mux) Message-Id: <200109151739.f8FHd1g02281@nebula.cybercable.fr> Date: Sat, 15 Sep 2001 19:39:01 +0200 (CEST) From: Maxime Henrion Reply-To: Maxime Henrion To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: conf/30596: Patch to specify a different directory to savecore Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30596 >Category: conf >Synopsis: Patch to specify a different directory to savecore >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 15 11:10:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Maxime Henrion >Release: FreeBSD 5.0-CURRENT i386 >Organization: None. >Environment: System: FreeBSD nebula.cybercable.fr 5.0-CURRENT FreeBSD 5.0-CURRENT #103: Sat Sep 15 18:03:06 CEST 2001 mux@nebula.cybercable.fr:/usr/src/sys/i386/compile/NEBULA i386 >Description: This patchs adds a savecore_dir know in rc.conf so that it's possible to specify another directory than /var/crash. The default is unchanged. >How-To-Repeat: >Fix: --- savecore.patch begins here --- --- /etc/rc Tue Sep 11 20:44:22 2001 +++ rc Tue Sep 11 20:45:47 2001 @@ -485,17 +485,17 @@ fi # Enable dumpdev so that savecore can see it. -# /var/crash should be a directory or a symbolic link +# ${savecore_dir} should be a directory or a symbolic link # to the crash directory if core dumps are to be saved. # case ${dumpdev} in [Nn][Oo] | '') ;; *) - if [ -e "${dumpdev}" -a -d /var/crash ]; then + if [ -e "${dumpdev}" -a -d "${savecore_dir}" ]; then /sbin/dumpon -v ${dumpdev} echo -n 'Checking for core dump: ' - /sbin/savecore ${savecore_flags} /var/crash + /sbin/savecore ${savecore_flags} ${savecore_dir} fi ;; esac --- /etc/defaults/rc.conf Tue Sep 11 20:43:40 2001 +++ rc.conf Tue Sep 11 20:43:30 2001 @@ -326,6 +326,7 @@ diskcheckd_flags="" # Flags to diskcheckd(8). dumpdev="NO" # Device name to crashdump to (or NO). savecore_flags="" # Used if dumpdev is enabled above, and present. +savecore_dir="/var/crash" # Where to put the kernel core dumps. 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). --- savecore.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message