Note also that the lines of code in question are a little different in the Precise version of the package:
if [ -f /usr/bin/mysqld_safe -a -f /etc/init.d/mysql ] ; then /etc/init.d/mysql status > /dev/null
if [ $? = 0 ]; then
I don't have a Precise system on which I can do any testing, but I'm pretty sure this new logic will not work as expected in Ubuntu, since the "/etc/init.d/mysql status" call will be translated by the 'upstart-job' compatibility script to run "status mysql" -- but that command doesn't set the exit status in the way that the old init.d/mysql script does.
(At least "status mysql" doesn't set the exit status in Lucid, and I haven't yet found any sign that this has changed in Precise...)
Note also that the lines of code in question are a little different in the Precise version of the package:
if [ -f /usr/bin/ mysqld_ safe -a -f /etc/init.d/mysql ] ; then
/etc/ init.d/ mysql status > /dev/null
if [ $? = 0 ]; then
I don't have a Precise system on which I can do any testing, but I'm pretty sure this new logic will not work as expected in Ubuntu, since the "/etc/init.d/mysql status" call will be translated by the 'upstart-job' compatibility script to run "status mysql" -- but that command doesn't set the exit status in the way that the old init.d/mysql script does.
(At least "status mysql" doesn't set the exit status in Lucid, and I haven't yet found any sign that this has changed in Precise...)