OVERVIEW
This script is based on other init.d scripts

It is pretty basic

I hope you find it useful


HOW TO INSTALL
gunzip -c tomcat-startup-0.1.tar.gz | tar xf -
cd tomcat-startup-0.1

ls /etc/init.d/tomcat
cp tomcat /etc/init.d/tomcat
chmod +x /etc/init.d/tomcat

ls /etc/sysconfig/tomcat
cp docs/etc_sysconfig_tomcat.sample /etc/sysconfig/tomcat

On some systems, you can add it to the startup sequence like this:
chkconfig tomcat on
chkconfig --list tomcat


HOW TO RUN
/etc/init.d/tomcat status



MISC NOTES
Currently the script executes this command before invoking catalina:
        cd /root/log
This is an artifact of my work environment. See future improvements.
Also, even though there are settings in sysconfig/tomcat, some of the
paths are currently hardcoded.


FUTURE IMPROVEMENTS
+ Add a "working directory" setting to sysconfig/tomcat, so that the
start and stop commands will cd there first. Default should be "."
+ Use the defined settings in sysconfig/tomcat for java and catalina
locations.

--
Jonathan Buhacoff
http://www.openparty.net/projects/tomcat-startup/
