Changeset 0f6f338693b9c728099385a174117fb2ce7a0e4e

Show
Ignore:
Timestamp:
02/07/12 14:50:28 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1328626228 -0500
git-parent:

[fca0a033257b4175c839ab124a5c1a2aebfac3ae]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1328626228 -0500
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/jezebel.in

    r4bb6079 r0f6f338  
    33set -- `getopt l:p:fj:dD: $*` 
    44 
    5 JAVA=@JAVA@ 
     5if [ ! -x "$JAVA" ]; then 
     6        JAVA=@JAVA@ 
     7fi 
     8if [ ! -x $JAVA ]; then 
     9        JAVA=/opt/local/bin/java 
     10fi 
     11if [ ! -x $JAVA ]; then 
     12        JAVA=/usr/local/bin/java 
     13fi 
    614if [ ! -x $JAVA ]; then 
    715        JAVA=/usr/bin/java 
     
    7280        $JAVA $JPARAMS -classpath $CP com.omniti.jezebel.Jezebel $ARGS < /dev/null > $LOGFILE 2>&1 & 
    7381        PID=$! 
    74         echo $PID > $PIDFILE 
     82        if [ -n "$PIDFILE" ]; then 
     83                echo $PID > $PIDFILE 
     84  fi 
    7585fi 
    7686