[Bug 608423] [NEW] post-start script broken

Jürgen Kreileder jk at blackdown.de
Wed Jul 21 20:55:52 BST 2010


Public bug reported:

5.1.41-3ubuntu12.4 from lucid-proposed has a broken post-start script.

After starting mysql, /var/log/syslog says:
init: mysql post-start process (11493) terminated with status 1

Looking at the post-start script shows two problems:

1)  ret = $?
Note the spaces before and after the '='.  There should be none!
As it is now, it tries to run a command called "ret" instead of setting a variable.

2) /usr/bin/mysqladmin --defaults-file=$HOME/debian.cnf ping
If this returns a non-zero exit status (most likely because mysql isn't fully up yet), the post-script exits immediately!
You need a "set +e" or something else that keeps the post-start script from exiting prematurely if the command returns with something != 0.

** Affects: mysql-dfsg-5.1 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: regression-proposed

** Tags added: regression-proposed

-- 
post-start script broken
https://bugs.launchpad.net/bugs/608423
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to mysql-dfsg-5.1 in ubuntu.



More information about the Ubuntu-server-bugs mailing list