Ubuntu – Disable autostart for a service without uninstalling?

serverservicestomcat

How can I disable autostart for a service without uninstalling? For example, I'd like to leave tomcat installed, but I don't want it turning on every time I restart.

Best Answer

This should do the trick:

Open terminal (Ctrl + Alt + T) and enter the following command:

sudo update-rc.d tomcat disable

Basically update-rc.d will modify existing runlevel links for the script /etc/init.d/tomcat by renaming start links to stop links.