Mailinglist Archive: opensuse-factory (341 mails)

< Previous Next >
Re: [opensuse-factory] mysql sysconfig
  • From: Peter Poeml <poeml@xxxxxxx>
  • Date: Tue, 17 Feb 2009 15:24:22 +0100
  • Message-id: <20090217142422.GT14919@xxxxxxx>
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@xxxxxxxxxxxx (a.k.a. ftpadmin@xxxxxxxx)
#opensuse-mirrors on freenode.net
Info: http://en.opensuse.org/Mirror_Infrastructure

SUSE LINUX Products GmbH
Research & Development
< Previous Next >
References