3

As you can see, mysql exists only in the /etc/init.d directory and not in /etc/rcN.d, therefore it shouldn't start on boot.

$ sudo find /etc -regex ".*\(rc.*d\|init\.d\).*" | sudo grep "mysql" | sort
/etc/init.d/mysql

1 Answer 1

7

MySQL is started by upstart. You can find the configuration file at /etc/init/mysql.conf

4
  • Thanks. I've edit that file and replaced the line ` and runlevel [2345])` with ` and runlevel [345])`.
    – Dor
    Nov 6, 2010 at 22:09
  • You can also be more clear and say 'start on never'
    – SpamapS
    Nov 9, 2010 at 6:06
  • New versions of Ubuntu use upstart(upstart.ubuntu.com) to manage service (start/stop/restart etc). It's a good system but I'm unable to disable a service to start on Ubuntu startup. I think that edit the configuration file as advised by txwikinger isn't a good method, so how to proceed? Nov 9, 2010 at 9:34
  • Unfortunately, currently this might be the only method. Maybe we need some better way to allow packaged configuration being mixed with local additions for upstart.
    – txwikinger
    Nov 10, 2010 at 0:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .