Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Mar 2009 21:12:17 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r190216 - stable/7/etc/rc.d
Message-ID:  <200903212112.n2LLCHOV047040@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rodrigc
Date: Sat Mar 21 21:12:16 2009
New Revision: 190216
URL: http://svn.freebsd.org/changeset/base/190216

Log:
  MFC r180318:
  
  Remove the $DUMPDIR variable. It's redundant and the rest of the
  script uses $dumpdir directly.

Modified:
  stable/7/etc/rc.d/savecore

Modified: stable/7/etc/rc.d/savecore
==============================================================================
--- stable/7/etc/rc.d/savecore	Sat Mar 21 20:44:46 2009	(r190215)
+++ stable/7/etc/rc.d/savecore	Sat Mar 21 21:12:16 2009	(r190216)
@@ -17,11 +17,6 @@ stop_cmd=":"
 
 savecore_prestart()
 {
-	#	${DUMPDIR} should be a directory or a symbolic link
-	#	to the crash directory if core dumps are to be saved.
-	#
-	DUMPDIR="${dumpdir:-/var/crash}"
-
 	# Quit if we have no dump device
 	case ${dumpdev} in
 	[Nn][Oo] | '')
@@ -58,7 +53,7 @@ savecore_prestart()
 savecore_start()
 {
 	echo "Checking for core dump on ${dumpdev}..."
-	savecore ${savecore_flags} ${DUMPDIR} ${dumpdev}
+	savecore ${savecore_flags} ${dumpdir} ${dumpdev}
 }
 
 load_rc_config $name



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903212112.n2LLCHOV047040>