diff options
author | Alex Dupre <ale@FreeBSD.org> | 2014-06-03 11:06:50 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2014-06-03 11:06:50 +0000 |
commit | f5fea08c29f0a02a1ae508558a4273daa67cad57 (patch) | |
tree | e4ab2fd8ba540693c0d71d564693f8b9c5e0d4f7 /www/tomcat7/files/tomcat7.in | |
parent | Update to 6.0.41 release. (diff) |
- Update to 7.0.54 release [1]
- Add support for environment variables.
PR: 190228
Submitted by: wombat@marsupial.org
Notes
Notes:
svn path=/head/; revision=356329
Diffstat (limited to 'www/tomcat7/files/tomcat7.in')
-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" |