[debian-mysql] Bug#544013: mysql-server-5.1: logrotate script cannot handle stopped mysqld

David Engel david at debian.org
Tue Feb 2 15:07:59 UTC 2010


On Fri, Aug 28, 2009 at 09:14:52AM +0200, Helmut Grohne wrote:
> /etc/cron.daily/logrotate:
> error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log '
> run-parts: /etc/cron.daily/logrotate exited with return code 1
> 
> I hope that you get the package properly split for akonadi soon, because
> at the moment kdepim is a real pain.

Here's an alternative fix I'm using.  In /etc/logrotate.d/mysql-server,
change this line 

                  if ps cax | grep -q mysqld; then

to this

                  if killall -q -s0 -umysql mysqld; then

That should cause the check to ignore any running mysqld processes
that aren't the system wide service.

David
-- 
David Engel
david at debian.org





More information about the pkg-mysql-maint mailing list