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@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
|