Upstart /etc/init mysql.conf - manual vs automatic startup
My question is now that I have MySQL running on node two as a remote database server (via private IP), how do I prevent MySQL on node one from starting up during boot? I don't want to uninstall MySQL on node one and I don't want to make other drastic changes in case I want to bring up MySQL again on node one.
If MySQL was part of the traditional runlevels I could just
update-rc.d mysql disable
but when I do that now I get
update-rc.d: warning: /etc/init.d/mysql missing LSB information
update-rc.d: see <http: wiki.debian.org="" lsbinitscripts="">System start/stop links for /etc/init.d/mysql do not exist.</http:>
Investigating I find a "mysql.conf" in /etc/init. However there is a link "mysql -> /lib/init/upstart-job" in /etc/init.d, so I'm confused.
Do I edit /etc/init/mysql.conf or remove it? And if I edit it, what do I comment out or put in its place?
Or can I just remove the link in /etc/init.d to prevent startup during boot and leave mysql.conf alone?
2 Replies
-James
I'll try the rename to .disabled as you suggested, thanks!