diff options
author | William Thomson <wltjr@gentoo.org> | 2007-01-28 07:26:59 +0000 |
---|---|---|
committer | William Thomson <wltjr@gentoo.org> | 2007-01-28 07:26:59 +0000 |
commit | e7dc883982b0edde6ab9227a07374de37404b3dc (patch) | |
tree | 9c7f0629a600b83ce1405a79a83a587be3d2ad6a /www-servers/tomcat/files/5.5.20/tomcat.init | |
parent | Added ~ppc (diff) | |
download | gentoo-2-e7dc883982b0edde6ab9227a07374de37404b3dc.tar.gz gentoo-2-e7dc883982b0edde6ab9227a07374de37404b3dc.tar.bz2 gentoo-2-e7dc883982b0edde6ab9227a07374de37404b3dc.zip |
Updated init script to capture std out per bug# 162379
(Portage version: 2.1.2-r1)
Diffstat (limited to 'www-servers/tomcat/files/5.5.20/tomcat.init')
-rwxr-xr-x | www-servers/tomcat/files/5.5.20/tomcat.init | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/www-servers/tomcat/files/5.5.20/tomcat.init b/www-servers/tomcat/files/5.5.20/tomcat.init index 3b083cd2d844..677bdbde0b94 100755 --- a/www-servers/tomcat/files/5.5.20/tomcat.init +++ b/www-servers/tomcat/files/5.5.20/tomcat.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.5.20/tomcat.init,v 1.3 2007/01/10 21:06:33 wltjr Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.5.20/tomcat.init,v 1.4 2007/01/28 07:26:59 wltjr Exp $ init_env_vars() { # Set some sane defaults @@ -38,8 +38,6 @@ init_env_vars() { touch "${CATALINA_BASE}logs/catalina.out" chown tomcat:tomcat "${CATALINA_BASE}logs/catalina.out" fi - - STD_OUT=" 2<&1 >> ${CATALINA_BASE}logs/catalina.out" } start-helper() { @@ -47,7 +45,7 @@ start-helper() { shift local arguments="--start --quiet --background --chuid ${CATALINA_USER}:${CATALINA_GROUP} \ --make-pidfile --pidfile /var/run/tomcat.pid" - start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${STD_OUT} ${TOMCAT_START} + start-stop-daemon ${arguments} --exec ${executor} -- ${OPTS_CP} "$@" ${CATALINA_ARGS} ${TOMCAT_START} >> "$CATALINA_BASE"/logs/catalina.out 2>&1 return $? } |