[debian-mysql] Bug#621020: really? (Debian Policy and LSB)
Nicholas Bamber
nicholas at periapt.co.uk
Wed Apr 11 19:37:16 UTC 2012
tag 621020 +moreinfo
thanks
Regarding #621020
"/etc/init.d/mysql uses "set -e" for most of the script, but that is not
compatible with the LSB library /lib/lsb/init-functions. This
particularly causes problems whenever log_end_msg is called with a
nonzero argument, as log_end_msg will return that argument and halt the
script. So there are several chunks of code that will never be called
(some informational messages and the stop-using-kill bit)."
Hmm... This contradicts section 6.1 of the Debian policy.
"The package management system looks at the exit status from these
scripts. It is important that they exit with a non-zero status if there
is an error, so that the package management system can stop its
processing. For shell scripts this means that you almost always need to
use set -e (this is usually true when writing shell scripts, in fact).
It is also important, of course, that they exit with a zero status if
everything went well."
Copying "debian-devel" for more general comments.
More information about the pkg-mysql-maint
mailing list