hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r573074 - in /lucene/hadoop/trunk: CHANGES.txt bin/hadoop-daemon.sh
Date Wed, 05 Sep 2007 21:36:00 GMT
Author: cutting
Date: Wed Sep  5 14:36:00 2007
New Revision: 573074

URL: http://svn.apache.org/viewvc?rev=573074&view=rev
Log:
HADOOP-1825.  Create HADOOP_PID_DIR when it does not exist.  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=573074&r1=573073&r2=573074&view=diff
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Wed Sep  5 14:36:00 2007
@@ -151,6 +151,9 @@
 
     HADOOP-1812. Let OS choose ports for IPC and RPC unit tests. (cutting)
 
+    HADOOP-1825.  Create $HADOOP_PID_DIR when it does not exist.
+    (Michael Bieniosek via cutting)
+
 
 Release 0.14.1 - 2007-09-04
 

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



Mime
View raw message