Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

2 Answers 2

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

 
discard

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.