Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom Tomcat 6 installation on an Ubuntu box. I'm trying to get it to start on system boot, but can't seem to find a script to put in /etc/init.d. Where can I find one? Or how do I write it myself?

share|improve this question

If you need more sophisticated script, then you can attempt to use /etc/init.d/tomcat6, which is provided by tomcat6 package:

mkdir tomcat6-pckgsrc
cd tomcat6-pckgsrc
apt-get source tomcat6
cat tomcat6-6.0.28/debian/tomcat6.init

To install as bootable System-V style init script use:

update-rc.d tomcat6 start 17 2 3 4 5 . stop 01 0 1 6 .
# update-rc.d -f tomcat6 remove
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.