Re: /etc/cron.daily/logrotate



On Sun, Dec 02, 2007 at 12:49:20PM +0200, Sebastian Tennant wrote:
Doh! The postrotate script is in /etc/logrotate.d/mysql-server:

test -x /usr/bin/mysqladmin || exit 0

# If this fails, check debian.conf!
export HOME=/etc/mysql/my.cnf
MYADMIN="/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf"
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
else
$MYADMIN flush-logs
fi

Now what could be causing the error? Hmm....


Well, run the script manually one line at a time. First, read
/etc/mysql/debian.cnf to determine under what user you should run
things (I've never used mysql). Also, read the mysqladmin man page.

Doug.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: /etc/cron.daily/logrotate
    ... # Really no mysqld or rather a missing debian-sys-maint user? ... # If this occurs and is not a error please report a bug. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: =?ISO-8859-1?Q?[Ubuntu]_Logrotate_error_f=FCr_mysql?=
    ... # Really no mysqld or rather a missing debian-sys-maint user? ... # If this occurs and is not a error please report a bug. ...
    (de.comp.os.unix.linux.misc)
  • Re: [Ubuntu] Logrotate error =?ISO-8859-1?Q?f=FCr_mysql?=
    ... # Else the binary logs would automatically increase by n times every day. ... # - The error log is obsolete, ... # Really no mysqld or rather a missing debian-sys-maint user? ...
    (de.comp.os.unix.linux.misc)
  • Re: Logrotate error in lenny
    ... # Really no mysqld or rather a missing debian-sys-maint user? ... The first test succeeds; the second fails. ... how do I fix it / should follow the instruction to raise a bug? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • boot process hangs on init of mysqld
    ... I cannot ssh into the machine because the boot process hasn't progressed far enough. ... I cannot edit the init scripts to remove mysqld. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)