[debian-mysql] Bug#773282: Bug#773282: mariadb-server-10.0: init script returns failure on success

Otto Kekäläinen otto at seravo.fi
Wed Dec 17 11:09:58 UTC 2014


2014-12-16 14:04 GMT+02:00 Frédéric Brière <fbriere at fbriere.net>:
> The problem lies with line 122: /etc/mysql/debian-start no longer
> outputs anything (at least for me), so the expression evaluates to 1,
> hence the statement (because of &&), hence the script (because this is
> the last statement).  Shell scripting is such a pain...
>
> Using "if" (which returns 0) or appending "|| true" does the trick

Thank you for taking the time to report this.

I believe I broke the init script in the commit
http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=7afa3d0dc6fef794528bc7a06ad2244b8eb3b315
I still think it is a good thing not to output extra stuff during
start/stop, so instead of reverting the change I'll do one of the
things you suggested to fix it.



More information about the pkg-mysql-maint mailing list