diff options
Diffstat (limited to 'www/tomcat7/files')
-rw-r--r-- | www/tomcat7/files/tomcat7.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/tomcat7/files/tomcat7.in b/www/tomcat7/files/tomcat7.in index efb0fd278e58..7b1486288f38 100644 --- a/www/tomcat7/files/tomcat7.in +++ b/www/tomcat7/files/tomcat7.in @@ -121,4 +121,15 @@ command_args="-java-home '${_tomcat_java_home}' \ org.apache.catalina.startup.Bootstrap \ ${_tomcat_pipe_cmd}" +start_precmd="tomcat_prestart" + +tomcat_prestart() +{ + if [ -r "${_tomcat_catalina_base}/bin/setenv.sh" ]; then + . "${_tomcat_catalina_base}/bin/setenv.sh" + elif [ -r "%%TOMCAT_HOME%%/bin/setenv.sh" ]; then + . "%%TOMCAT_HOME%%/bin/setenv.sh" + fi +} + run_rc_command "$1" |