Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: /etc/cron.daily/logrotate

From: Douglas A. Tutty <dtutty(at)porchlight.ca>
Date: Sun Dec 02 2007 - 13:50:07 EST


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@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sun Dec 2 16:02:52 2007

This archive was generated by hypermail 2.1.8 : Tue Feb 26 2008 - 16:36:25 EST


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library