Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 145619 - MySQL 5.0.x init script is missing important functionality from mysqld_safe
Summary: MySQL 5.0.x init script is missing important functionality from mysqld_safe
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 09:35 UTC by Daniel Beckham
Modified: 2007-05-05 22:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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