[debian-mysql] Bug#383543: mysql-server: logrotate script fails if mysqld is not running
Bram Schoenmakers
debian at bramschoenmakers.nl
Wed Jan 19 11:28:38 UTC 2011
Apologies for bringing this up after such a long time, but it seems
that this bug is present without 3rd party packages involved. The
Akonadi daemon, part of KDE 4, launches its own instance and affects
the output of ps cax | grep mysqld :
/usr/sbin/mysqld
--defaults-file=/home/bram/.local/share/akonadi//mysql.conf
--datadir=/home/bram/.local/share/akonadi/db_data/socket=/home/bram/.local/share/akonadi/db_misc/mysql.socket
To fix this in /etc/logrotate.d/mysql-server, I check for the
existence of the socket on its main location:
if ps cax | grep -q mysqld; then
becomes
if [ -S '/var/run/mysqld/mysqld.sock' ]; then
But I wonder if this solution applies in general, but at least it
supports Debian's default settings.
--
Bram Schoenmakers
More information about the pkg-mysql-maint
mailing list