You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ac...@apache.org on 2007/10/25 19:30:36 UTC

svn commit: r588285 - in /lucene/hadoop/trunk: CHANGES.txt bin/hadoop-daemon.sh

Author: acmurthy
Date: Thu Oct 25 10:30:36 2007
New Revision: 588285

URL: http://svn.apache.org/viewvc?rev=588285&view=rev
Log:
HADOOP-2100.  Remove faulty check for existence of $HADOOP_PID_DIR and let 'mkdir -p' to check & create it. Contributed by Michael Bieniosek.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/bin/hadoop-daemon.sh

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=588285&r1=588284&r2=588285&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Thu Oct 25 10:30:36 2007
@@ -33,6 +33,11 @@
     HADOOP-1898.  Release the lock protecting the last time of the last stack
     dump while the dump is happening. (Amareshwari Sri Ramadasu via omalley)
 
+  BUG FIXES
+
+    HADOOP-2100.  Remove faulty check for existence of $HADOOP_PID_DIR and let
+    'mkdir -p' check & create it. (Michael Bieniosek via acmurthy)
+
 Branch 0.15 (unreleased changes)
 
   INCOMPATIBLE CHANGES

Modified: lucene/hadoop/trunk/bin/hadoop-daemon.sh
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/bin/hadoop-daemon.sh?rev=588285&r1=588284&r2=588285&view=diff
==============================================================================
--- lucene/hadoop/trunk/bin/hadoop-daemon.sh (original)
+++ lucene/hadoop/trunk/bin/hadoop-daemon.sh Thu Oct 25 10:30:36 2007
@@ -81,9 +81,8 @@
 
   (start)
 
-    if [ ! -d "HADOOP_PID_DIR" ]; then
-      mkdir -p "$HADOOP_PID_DIR"
-    fi
+    mkdir -p "$HADOOP_PID_DIR"
+
     if [ -f $pid ]; then
       if kill -0 `cat $pid` > /dev/null 2>&1; then
         echo $command running as process `cat $pid`.  Stop it first.