Bug #34984 [patch] mysqld_multi to support reload option
Submitted: 2 Mar 2008 13:44 Modified: 8 Mar 2011 18:39
Reporter: Richard Bos (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S4 (Feature request)
Version:5 OS:Any
Assigned to: Hery Ramilison CPU Architecture:Any
Tags: Contribution

[2 Mar 2008 13:44] Richard Bos
Description:
In order to support the LSB (linux standard base) the startup scripts in
linux need to be able to process the option 'reload a process'.  To make
this possible with the mysqld_multi script, the mysqld_server script has
to be extended.  A patch that makes this work will be attached to this
bug report (if I'm going to be able to do this).

The patch also installs a database if it discovers that the requested database
directory is not yet populated with mysql files.

How to repeat:
Execute the command:
# mysqld_multi reload

Suggested fix:
This will be an attached patch (if possible)
[2 Mar 2008 13:46] Richard Bos
Add code to support the reload option, and to install new database files

Attachment: mysqld_multi.patch (text/x-diff), 5.26 KiB.

[12 Mar 2008 16:09] Michal Marek
updated patch, creates datadir if needed on first db startup

Attachment: mysqld_multi.patch (text/x-diff), 5.60 KiB.

[14 Mar 2008 13:29] Michal Marek
updated patch, with a bug in 'start' and 'reaload' fixed

Attachment: mysqld_multi.patch (text/x-diff), 5.67 KiB.

[14 Mar 2008 19:48] Richard Bos
It would good if the argument -status- will be supported as well.
All LSB startup scripts support the argument -status-, which has the same
purpose as the -report- argument in the mysqld_multi script.
[19 Mar 2008 17:34] Susanne Ebrecht
Verified by looking into source code: scripts/mysqld_multi.sh from MySQL 5.0 bk tree.
[8 Jun 2009 23:10] liz drachnik
Hello Richard - 

In order for us to continue the process of reviewing your contribution to MySQL - We need you to review and sign the Sun|MySQL contributor agreement (the "SCA")

The process is explained here: 
http://forge.mysql.com/wiki/Sun_Contributor_Agreement

Getting a signed/approved SCA on file will help us facilitate your contribution-- this one, and others in the future.

Thank you ! 

Liz Drachnik  - Program Manager - MySQL
[2 Sep 2009 19:19] Richard Bos
I signed the SCA a loonnnggggg time ago.  I just checked the site and I'm listed under "B".  Looks fine to me.
[2 Sep 2009 20:46] Liz Drachnik
SCA indeed has been signed, let me add the correct tag. thanks
[8 Mar 2011 18:39] Hery Ramilison
Patch applied and pushed.