[debian-mysql] Bug#739846: Bug#739846: Bug#739846: invoke-rc.d: initscript mysql, action "start" failed.

pofman at free.fr pofman at free.fr
Sat Jul 18 12:28:59 UTC 2015


Hello!

On Sat, 4 Jul 2015 09:19:12 +0300 =?UTF-8?B?T3R0byBLZWvDpGzDpGluZW4=?= 
<otto at seravo.fi> wrote:
> Hello!
> 
> 2015-06-30 11:35 GMT+03:00 Bob Proulx <bob at proulx.com>:
> > I had also modified /etc/mysql/debian-start (hey it is a conffile
> > after all) to avoid printing this message:
> >
> >   echo "Checking for tables which need an upgrade, are corrupt or were "
> >   echo "not closed cleanly."
> 
> This and many similar things have long been fixed in the mariadb
> package init script. Maybe you want to compare the mysql-5.6 init
> script to it and copy over all the changes that you think are good?
> 
> https://anonscm.debian.org/gitweb/?p=pkg-mysql/mariadb-10.0.git
> 
> 

I have the same bug when upgrading to mysql-server-5.6.

When /etc/mysql/debian-start outputs nothing, /etc/init.d/mysql exits with the 
exit code of [ -n "$output" ].

I have fixed it by replacing:
	        # Now start mysqlcheck or whatever the admin wants.
	        output=$(/etc/mysql/debian-start)
		[ -n "$output" ] && log_action_msg "$output"
With:
	        # Now start mysqlcheck or whatever the admin wants.
	        output=$(/etc/mysql/debian-start)
		if [ -n "$output" ] ; then 
			log_action_msg "$output"
		fi



More information about the pkg-mysql-maint mailing list