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

How can I add a service (like tomcat) to my startup routine so it starts up upon server restarts?

share|improve this question
up vote 0 down vote accepted

Check out update-rc.d command. It is used in debian to install and remove startup services such as tomcat and others. The startup script needs to exist in /etc/init.d/ first for it to be used.

share|improve this answer

You could also add a line in /etc/rc.local that simply calls tomcat's startup command. It will be executed at boot.

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.