Author: markt Date: Thu Jul 25 19:23:33 2013 New Revision: 1507096 URL: http://svn.apache.org/r1507096 Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=55297 Look in CATALINA_HOME for jsvc if it isn't specified and isn't found in CATALINA_BASE
Modified: tomcat/trunk/bin/daemon.sh Modified: tomcat/trunk/bin/daemon.sh URL: http://svn.apache.org/viewvc/tomcat/trunk/bin/daemon.sh?rev=1507096&r1=1507095&r2=1507096&view=diff ============================================================================== --- tomcat/trunk/bin/daemon.sh (original) +++ tomcat/trunk/bin/daemon.sh Thu Jul 25 19:23:33 2013 @@ -106,7 +106,13 @@ fi test ".$CATALINA_HOME" = . && CATALINA_HOME=`cd "$DIRNAME/.." >/dev/null; pwd` test ".$CATALINA_BASE" = . && CATALINA_BASE="$CATALINA_HOME" test ".$CATALINA_MAIN" = . && CATALINA_MAIN=org.apache.catalina.startup.Bootstrap -test ".$JSVC" = . && JSVC="$CATALINA_BASE/bin/jsvc" +# If not explicitly set, look for jsvc in CATALINA_BASE first then CATALINA_HOME +if [ -z $JSVC ]; then + JSVC="$CATALINA_BASE/bin/jsvc" + if [ ! -x $JSVC ]; then + JSVC="$CATALINA_HOME/bin/jsvc" + fi +fi # Set the default service-start wait time if necessary test ".$SERVICE_START_WAIT_TIME" = . && SERVICE_START_WAIT_TIME=10 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org