[lucid-proposed] post-start script broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.1 (Ubuntu) |
Fix Released
|
High
|
Chuck Short | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
High
|
Chuck Short | ||
mysql-dfsg-5.1 (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Chuck Short | ||
Maverick |
Invalid
|
High
|
Unassigned |
Bug Description
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-
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.
tags: | added: regression-proposed |
summary: |
- post-start script broken + [lucid-proposed] post-start script broken |
tags: | added: patch |
Changed in mysql-dfsg-5.1 (Ubuntu): | |
importance: | Undecided → High |
Well, since yesterday mysql won't be properly started anymore at boot-up. Grepping the syslog only returns this:
Jul 23 10:27:28 kubi kernel: [ 105.206415] type=1505 audit(127987364 8.967:10) : operation= "profile_ load" pid=914 name="/ usr/sbin/ mysqld" 9.044:11) : operation= "profile_ load" pid=979 name="/ usr/sbin/ mysqld- akonadi"
Jul 23 10:27:29 kubi kernel: [ 105.281964] type=1505 audit(127987364
I don't get the error that the thread opener gets but in effect, mysql is not being started at boot up.