#!/bin/csh -f # tomcat # ----------------------------------------------------------------------------- # C shell script to launch Apache Jakarta Tomcat Web server. # ----------------------------------------------------------------------------- # Revision History: # $Log$ # ----------------------------------------------------------------------------- if ($#argv != 1) then set verb = $0 echo "Usage: $verb:t start | stop" exit 1 endif # Moved to startup files. #setenv CATALINA_HOME /usr/local/tomcat #setenv JAVA_HOME /usr/java/j2sdk1.4.2_05 #setenv PATH ${PATH}:${JAVA_HOME}/bin # Needed by servlets for JDBC. #setenv CLASSPATH /home/stlukf00/OracleJDBC/classes12_01.zip # Needed by servlets for Xerces XML Parser. #setenv CLASSPATH ${CLASSPATH}:/home/stlukf00/xerces/xerces-1_1_3/xerces.jar # Old way before I added reboot startup scripts and called them from here. # Note: This approach didn't do a umask like the reboot startup scripts do. # Therefore, manual restarts left the log file and the tomcat-users.xml # file readable by the world. Was this always true? Why did I never # notice till 2/11/09, when I saw that the logs from 10/29/2008 (when # I rebooted to test the new reboot startup scripts I'd just written) # till 2/20/2009 (when I restarted the server manually) were -rw------- # but all previous log files from 9/3/2004 onward were -rw-r--r-- ? # Was tomcat-users.xml also readable when the log files were? It is # now, so I changed it from 644 to 600. # Did I do a chmod of the old log files to 644 once, to make them all # the same? #if ($1 == "start") ${CATALINA_HOME}/bin/startup.sh #if ($1 == "stop") ${CATALINA_HOME}/bin/shutdown.sh # Call the reboot startup scripts so it's always invoked the same way # whether manually or at startup. if ($1 == "start") /etc/init.d/tomcat5 start if ($1 == "stop") /etc/init.d/tomcat5 stop