Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145619

Summary: MySQL 5.0.x init script is missing important functionality from mysqld_safe
Product: Gentoo Linux Reporter: Daniel Beckham <dbeckham>
Component: [OLD] ServerAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED WONTFIX    
Severity: major    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Beckham 2006-08-30 09:35:28 UTC
The MySQL 5.0.x init script is missing the ability to restart the server when it dies from a SEGV or other non-normal signal.  

The mysqld_safe script was written to keep the MySQL server running and will restart the server on death to maintain service reliablility, but this ability was not copied to the portage version of the init script.
Comment 1 Francesco R. (RETIRED) gentoo-dev 2006-08-31 00:30:18 UTC
There is the "/etc/init.d/mysqlmanager" script that achieve a better result, it's very simple daemon (easy to keep bug free) that launch mysqld processes.

There is no possibility to copy the mysqld_safe behaviour, there is however an alternative: sys-process/daemontools, I can't tell how those integrate with current baselayout, plese ask on the forums/maillist/google for that
Comment 2 Raphael Marichez (Falco) (RETIRED) gentoo-dev 2007-05-05 22:48:37 UTC
FWI, the refusal of using mysqld_safe made gentoo vulnerable to a mysql DoS (server crash), where most other distros were safe.

security bug 171934 and
http://bugs.mysql.com/bug.php?id=27513