Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113440 - typo in mysql-5.0.16-r2 init script
Summary: typo in mysql-5.0.16-r2 init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 02:29 UTC by Alexander Stoll
Modified: 2005-11-24 10:38 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 Alexander Stoll 2005-11-24 02:29:05 UTC
After testing 5.0.16-r2 mysql initscript waits and waits and waits on shutdown...
There is an odd typo in it, on line 281/282:

# following code grabbed from the squid rc script
PID=$(cat /var/run/squid.pid 2>/dev/null)

should shurely read 

PID=$(cat /var/run/mysql.pid 2>/dev/null)

after correcting it, shutdown works again as expected.
When you snap code from other scripts, please reread it again! ;-)

Reproducible: Always
Steps to Reproduce:
1. emerge mysql-5.0.16-r2
2. start it via initscript
3. stop it via initscript

Actual Results:  
init script waits for shutdown of the mysql deamon which already occured

Expected Results:  
recognize the proper shutdown of the mysql daemon
Comment 1 Francesco R. (RETIRED) gentoo-dev 2005-11-24 10:38:37 UTC
yes my teacher was also used to say that :-p (not referring to rc scripts),
it's one of the fixes in -r3.

btw, 
PID=$(cat "${pidfile}" 2>/dev/null)
is the more general case that may come handy if using the /etc/conf.d/mysql file.

cheers