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
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