|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/bin/ |
Upload File : |
#!/bin/sh
#
# Wrapper script for Tomcat 5.0, to be sure it will allways
# be run with correct user profile (tomcat by default)
#
# derived from stuff in tomcat5.init
#
# Gomez Henri <hgomez@slib.fr>
# Keith Irwin <keith_irwin@non.hp.com>
# Nicolas Mailhot <nicolas.mailhot@one2team.com>
#
# version 1.01 - Fix webapps dir permissions
#
# Get Tomcat config
TOMCAT_CFG="/etc/tomcat5/tomcat5.conf"
[ -r "$TOMCAT_CFG" ] && . "${TOMCAT_CFG}"
# Path to the tomcat launch script
TOMCAT_SCRIPT=/usr/bin/dtomcat5
# Tomcat name :)
TOMCAT_PROG=tomcat5
# if TOMCAT_USER is not set, use tomcat
if [ -z "$TOMCAT_USER" ]; then
TOMCAT_USER="tomcat"
fi
RETVAL=0
su - $TOMCAT_USER -c "$TOMCAT_SCRIPT $@"
RETVAL=$?
exit $RETVAL