https://bz.apache.org/bugzilla/show_bug.cgi?id=65240
Bug ID: 65240 Summary: Multi line CATALINA_OPTS is failing in with new catalina.sh Product: Tomcat 7 Version: 7.0.108 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Integration Assignee: dev@tomcat.apache.org Reporter: e...@wp.pl Target Milestone: --- Steps: 1. Add setenv.sh with multiline variable. 2. Run tomcat (e.g. via init.d script). In log I got things like: /usr/share/apache-tomcat-7.0.108/bin/catalina.sh: line 509: -Dfile.encoding=UTF-8: command not found This is with `sentenv.sh` more or less like this: ``` if [ "$1" != "stop" ] ; then CATALINA_OPTS="$CATALINA_OPTS -Xms512m -Xmx1800m -XX:MaxPermSize=512m -XX:NewRatio=4 -XX:+UseCompressedOops -Dcom.sun.management.jmxremote -Dfile.encoding=UTF-8 " fi ``` There were more options but I guess any lines will be a problem there. The solution for me was to change evals to something like: eval exec "\"$_RUNJDB\"" "\"$CATALINA_LOGGING_CONFIG\"" $LOGGING_MANAGER "$JAVA_OPTS" $CATALINA_OPTS \ So basically replace `"$CATALINA_OPTS"` with `$CATALINA_OPTS`. Not sure why was this changed to quoted var? Seem to have worked fine before. At least for us ;-) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org