Your message dated Fri, 18 Aug 2006 09:38:40 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#383543: mysql-server: logrotate script fails if mysqld is
not running
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: mysql-server
Severity: minor
Hi,
I get the following output from logrotate:
/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
Looking at the relevant script, it has:
if [ -z "`$MYADMIN ping 2>/dev/null`" ]; then
# Really no mysqld or rather a missing debian-sys-maint user?
# If this occurs and is not a error please report a bug.
if ps cax | grep -q mysqld; then
exit 1
fi
I have mysql-server installed for another 3rd party package that starts
its own copy of mysqld with its own config file etc., so there is a
mysqld process, but it doesn't use the config files under /etc/mysql
(and it's not running as the normal user either). I'm not running mysqld
from /etc/init.d/mysql, because I don't need it.
As requested, in the comment, I'm reporting this as a bug. I realise it
is a tricky case, sorry about that. Maybe you could provide a config
file /etc/default/mysql, and allow a user to set a variable like
MYSQLD_ENABLE=no, that would prevent the daemon from starting, and
also prevent the logrotate scripts from trying to do anything.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
--- End Message ---
--- Begin Message ---
Hi Andrew
On 2006-08-18 Andrew Baumann wrote:
> I have mysql-server installed for another 3rd party package that starts
> its own copy of mysqld with its own config file etc., so there is a
Uhh.. that can be absolutely considered as "not supported" :)
I.e. I will not make my scripts more complicated for this, but
as all files under /etc are considered as "config files" by dpkg you can
safely modify them for your needs and any future update will ask you before
overwriting them.
bye,
-christian-
--- End Message ---