update-rc.d

Pour lister le lancement de mysql :

ls -l /etc/rc*.d/*mysql

Exemple :

lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc0.d/K02mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc1.d/K02mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc2.d/S18mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc3.d/S18mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc4.d/S18mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc5.d/S18mysql -> ../init.d/mysql
lrwxrwxrwx 1 root root 15  7 mars  17:46 /etc/rc6.d/K02mysql -> ../init.d/mysql

Désactiver mysql au démarrage :

update-rc.d mysql remove

Pour réactiver mysql au démarrage :

update-rc.d mysql defaults