apricoti

 

TomcatStartup

Page history last edited by Anonymous 2 yrs ago


 

Intro/Background

This script is based on other init.d scripts, especially Apache.

 

It is pretty basic

 

I hope you find it useful

 

Download

 

Tar/Gzip

 

 

Zip

 

 

How to Install

 

Unpack:

gunzip -c tomcat-startup-0.2.tar.gz | tar xf -

cd tomcat-startup-0.1

 

Copy the startup script:

ls /etc/init.d/tomcat

cp tomcat /etc/init.d/tomcat

chmod +x /etc/init.d/tomcat

 

Copy the optional config file:

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

/etc/init.d/tomcat fullstatus

/etc/init.d/tomcat stop

/etc/init.d/tomcat start

/etc/init.d/tomcat restart

 

 

 

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.

 

License

 

tomcat-startup, a start/stop script for the Tomcat webserver

Copyright (C) 2007 Jonathan Buhacoff

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 2 of the License, or

(at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Comments (0)

You don't have permission to comment on this page.