Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 121648 - Problems when stopping mysql
Summary: Problems when stopping mysql
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All FreeBSD
: High minor (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-05 03:50 UTC by Benigno B. Junior (RETIRED)
Modified: 2006-04-12 10:50 UTC (History)
1 user (show)

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 Benigno B. Junior (RETIRED) gentoo-dev 2006-02-05 03:50:31 UTC
Yesterday the user Status/#gentoo-bsd reported a problem with mysql init script. The mysql's init script use the following local variable to shutdown:
local shutdown_list="$(tac "${MYSQL_GLOB_PID_FILE}")"

which is a problem because tac is a coreutils thingy. I propose to change this to something like:
local shutdown_list="$(cat "${MYSQL_GLOB_PID_FILE}" | sort -r)"
Comment 1 Benigno B. Junior (RETIRED) gentoo-dev 2006-02-05 03:55:37 UTC
Same seems to go to /etc/init.d/mysqlmanager.
Comment 2 Francesco R. (RETIRED) gentoo-dev 2006-02-05 04:48:10 UTC
"${MYSQL_GLOB_PID_FILE}")" is _not_ alphabetically sorted, it's sorted by startup.

It's not so bad to have a shutdown order that is the _same_ of the startup one, if "tac" is a problem better fall back to the use of "cat" or it's bash equivalent VAR=$(< filename) .
Comment 3 Francesco R. (RETIRED) gentoo-dev 2006-02-05 08:59:23 UTC
The fix is in CVS waiting revbump to close as fixed
Comment 4 Francesco R. (RETIRED) gentoo-dev 2006-03-18 04:08:27 UTC
hem, forgot this one, closing, thanks again