This change in catalina.sh is preventing the PID file from being saved.

I don't see this mentioned in the changelog.

https://tomcat.apache.org/tomcat-8.5-doc/changelog.html

I understand the syntax in both is valid in both cases: single-& verses 
double-&.

I'm observing this on RHEL 6 and 7.

RHEL6$ /bin/sh --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)

RHEL7$ /bin/sh --version
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)

Can anyone shed any light on why this might be happening?



$ diff -u apache-tomcat-8.5.37/bin/catalina.sh 
apache-tomcat-8.5.38/bin/catalina.sh
--- apache-tomcat-8.5.37/bin/catalina.sh        2018-12-12 07:07:49.000000000 
-0500
+++ apache-tomcat-8.5.38/bin/catalina.sh        2019-02-05 06:44:05.000000000 
-0500
@@ -476,7 +476,7 @@
       -Dcatalina.home="\"$CATALINA_HOME\"" \
       -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
       org.apache.catalina.startup.Bootstrap "$@" start \
-      2\>\&1 \& echo \$! \>\"$catalina_pid_file\" \; \} $catalina_out_command 
"&"
+      2\>\&1 \&\& echo \$! \>\"$catalina_pid_file\" \; \} 
$catalina_out_command "&"
 
   else
     eval \{ $_NOHUP "\"$_RUNJAVA\"" "\"$LOGGING_CONFIG\"" $LOGGING_MANAGER 
$JAVA_OPTS $CATALINA_OPTS \
@@ -486,7 +486,7 @@
       -Dcatalina.home="\"$CATALINA_HOME\"" \
       -Djava.io.tmpdir="\"$CATALINA_TMPDIR\"" \
       org.apache.catalina.startup.Bootstrap "$@" start \
-      2\>\&1 \& echo \$! \>\"$catalina_pid_file\" \; \} $catalina_out_command 
"&"
+      2\>\&1 \&\& echo \$! \>\"$catalina_pid_file\" \; \} 
$catalina_out_command "&"
 
   fi
 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to