[debian-mysql] Bug#705154: mysql-server-5.5: non-zero exit status from /etc/init.d/mysql start when /etc/mysql/debian-start echoes no text
Andrew Basterfield
andrew at dialogue.net
Wed Apr 10 17:04:48 UTC 2013
Package: mysql-server-5.5
Version: 5.5.30+dfsg-1
Severity: normal
Tags: patch
When /etc/mysql/debian-start echoes no text the value of $output /etc/init.d/mysql:120 is zero-length. This causes [ -n "$output ] to fail and as we are under set -e we exit the script at that point with a non-zero exit status.
output=$(/etc/mysql/debian-start)
[ -n "$output" ] && log_action_msg "$output"
This will cause apt to fail configuration of the package.
I would suggest the following to fix it
[ -n "$output" ] && log_action_msg "$output" || true
This is not a problem with the standard /etc/mysql/debian-start as it echoes copious text but it is not unreasonable to allow a user to silence /etc/mysql/debian-start.
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages mysql-server-5.5 depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.49
ii initscripts 2.88dsf-41
ii libc6 2.13-38
ii libdbi-perl 1.622-1
ii libgcc1 1:4.7.2-5
ii libstdc++6 4.7.2-5
ii lsb-base 4.1+Debian8
ii mysql-client-5.5 5.5.30+dfsg-1
ii mysql-common 5.5.30+dfsg-1
ii mysql-server-core-5.5 5.5.30+dfsg-1
ii passwd 1:4.1.5.1-1
ii perl 5.14.2-20
ii psmisc 22.19-1+deb7u1
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages mysql-server-5.5 recommends:
ii heirloom-mailx [mailx] 12.5-2
ii libhtml-template-perl 2.91-1
Versions of packages mysql-server-5.5 suggests:
pn tinyca <none>
-- Configuration Files:
/etc/mysql/debian-start changed [not included]
-- debconf information excluded
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etc.init.d.mysql.diff
Type: text/x-diff
Size: 471 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20130410/12dd3b59/attachment.diff>
More information about the pkg-mysql-maint
mailing list