Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42692 - mysql init needs better error handling
Summary: mysql init needs better error handling
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
Depends on:
Reported: 2004-02-23 20:26 UTC by Steven Wagner
Modified: 2004-09-06 21:03 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Steven Wagner 2004-02-23 20:26:16 UTC
Often times it is possible to do a /etc/init.d/mysql start, and get a report back of a green [OK], only later to find out that mysql actually quit with an error immediately after restarting...requiring you to zap the process ID, and parse the mysqld.err to find the error.  The /etc/init.d/mysql really needs to be able to monitor these error conditions and be able to tell you if mysql actually did start properly.  Suggestions on how to do this are open.
Comment 1 Aaron Peterson 2004-09-06 19:46:51 UTC
I'm tagging along with an existing bug, I'll make a new one if need be though:

I did /etc/init.d/net.eth0 stop and /etc/init.d/mysqld stop then /etc/init.d/mysqld start... and my ethernet came back up!!! WTH?!!! mysql doesn't need the net!

I wanted to use it without starting external links.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-06 21:03:19 UTC
Steven: These cases are extremely difficult to catch, as mysql reports success back to us, even if you use the mysql-provided startup scripts (eg mysql.server), and it only fails a little bit after that. there are also a few cases where it doesn't even write anything to the error log, so you can't rely on that.

All of the cases where it does happen indicate that mysql is not correctly configured on the user side.

If you put together a patch that catchs this, I'll be glad to include it, and see that it's sent upstream. Otherwide, the return on the investment of writing it myself is not sufficent for it to be worthwhile.

aaron: that issue is fixed now.