Disable autostart from mysql

Tom H tomh0665 at gmail.com
Sun Mar 6 19:34:45 UTC 2011


On Sun, Mar 6, 2011 at 1:58 PM, Hartmut <freemlist at googlemail.com> wrote:
> On Sun, Mar 6, 2011 at 5:37 PM, Tom H <tomh0665 at gmail.com> wrote:
>> On Sun, Mar 6, 2011 at 9:41 AM, Hartmut <freemlist at googlemail.com> wrote:
>>>
>>> how can I disable the autostart from mysql during boot? I removed
>>> mysql from all runlevels with 'sudo update-rc.d -f mysql remove', but
>>> mysql is still running after system boot.
>>
>> I think that mysql's been "upstarted" and its startup is controlled
>> through "/etc/init/mysql.conf".
>
> The file /etc/init/mysql.conf contains
> ----------
> start on (net-device-up
>          and local-filesystems
>          and runlevel [2345])
> ----------
> Is it clever to remove the content between the brackets? Or isn't this
> a good idea?

If you'd like to disable mysql's auto-start, you should comment out
the three lines - and (since I don't know whether these changes are
respected) check that your changes aren't reversed when mysql's
updated.




More information about the ubuntu-users mailing list