[opensuse-factory] mysql sysconfig
Hi, I've been thinking and MySQL uses MYSQLD_MULTI in /etc/sysconfig/mysql to determine whether user wants to start several instances of MySQL. If it is set to yes, init script starts mysql daemon for every mysqldN section in /etc/my.cnf As some users find it confusing to have /etc/my.cnf and /etc/sysconfig/mysql at the same time, I propose to drop /etc/sysconfig/mysql. It should be possible to check in init script whether user has several daemons configured and act accordingly. So we can get rid of the other configuration file and depend only on one configuration file. Only question is if anybody else then mysql need this sysconfig file... Does anybody think that we should preserve this sysconfig file? Do you know about anything else what needs this sysconfig variable? -- Michal Hrusecky Package Maintainer SUSE LINUX, s.r.o e-mail: mhrusecky@suse.cz -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi Michal, On Mon, Feb 02, 2009 at 03:42:09PM +0100, Michal Hrusecky wrote:
I've been thinking and MySQL uses MYSQLD_MULTI in /etc/sysconfig/mysql to determine whether user wants to start several instances of MySQL. If it is set to yes, init script starts mysql daemon for every mysqldN section in /etc/my.cnf As some users find it confusing to have /etc/my.cnf and /etc/sysconfig/mysql at the same time, I propose to drop /etc/sysconfig/mysql. It should be possible to check in init script whether user has several daemons configured and act accordingly. So we can get rid of the other configuration file and depend only on one configuration file. Only question is if anybody else then mysql need this sysconfig file... Does anybody think that we should preserve this sysconfig file? Do you know about anything else what needs this sysconfig variable?
I think, it doesn't matter too much. I would balance new source of confusion (appeared file disappears again, or rather doesn't disappear because /etc/sysconfig isn't cleaned up and the file remains on systems) against simpler setup. One argument for /etc/sysconfig/mysql could be that it makes the feature more visible; otherwise nobody would probably look into the init script. I don't think it matters much, either way. Peter -- Contact: admin@opensuse.org (a.k.a. ftpadmin@suse.com) #opensuse-mirrors on freenode.net Info: http://en.opensuse.org/Mirror_Infrastructure SUSE LINUX Products GmbH Research & Development
participants (2)
-
Michal Hrusecky
-
Peter Poeml