home / blog

Disabling services in ubuntu 12.04

There are still a mix of upstart and old-school services. To disable the oldschool services just chmod a-x the service.

chmod a-x /etc/init.d/apache2

Upstart services are just links to upstart-job with config provided in the /etc/init directory…

ls -l /etc/init.d/cups
lrwxrwxrwx 1 root root 21 Apr 10 06:25 cups -> /lib/init/upstart-job

To disable, just add the line “manual” to a corresponding override file.

echo "manual" > /etc/init/cups.override
This entry was posted in geek and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published.