[Reconnoiter-devel] [reconnoiter commit] Reconnoiter branch, master, updated. 0f6f338693b9c728099385a174117fb2ce7a0e4e

git at labs.omniti.com git at labs.omniti.com
Tue Feb 7 09:50:45 EST 2012


Pushed by: jesus
The branch, master has been updated
       via  0f6f338693b9c728099385a174117fb2ce7a0e4e (commit)
      from  fca0a033257b4175c839ab124a5c1a2aebfac3ae (commit)

Summary of changes:
 src/java/jezebel.in |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

Log:
commit 0f6f338693b9c728099385a174117fb2ce7a0e4e
Author: Theo Schlossnagle <jesus at omniti.com>
Date:   Tue Feb 7 09:50:28 2012 -0500

    If no PIDFILE is specified, don't try to write to one.
    Look in some more common places for java.

diff --git a/src/java/jezebel.in b/src/java/jezebel.in
index 260effa..db8efb7 100755
--- a/src/java/jezebel.in
+++ b/src/java/jezebel.in
@@ -2,7 +2,15 @@
 
 set -- `getopt l:p:fj:dD: $*`
 
-JAVA=@JAVA@
+if [ ! -x "$JAVA" ]; then
+	JAVA=@JAVA@
+fi
+if [ ! -x $JAVA ]; then
+	JAVA=/opt/local/bin/java
+fi
+if [ ! -x $JAVA ]; then
+	JAVA=/usr/local/bin/java
+fi
 if [ ! -x $JAVA ]; then
 	JAVA=/usr/bin/java
 fi
@@ -71,6 +79,8 @@ elif [ "$FOREGROUND" = "1" ]; then
 else
         $JAVA $JPARAMS -classpath $CP com.omniti.jezebel.Jezebel $ARGS < /dev/null > $LOGFILE 2>&1 &
 	PID=$!
-	echo $PID > $PIDFILE
+	if [ -n "$PIDFILE" ]; then
+		echo $PID > $PIDFILE
+  fi
 fi
 




hooks/post-receive
-- 
Reconnoiter


More information about the Reconnoiter-devel mailing list