Re: /etc/cron.daily/logrotate
- From: "Douglas A. Tutty" <dtutty@xxxxxxxxxxxxx>
- Date: Sun, 2 Dec 2007 13:50:07 -0500
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
- Follow-Ups:
- Re: /etc/cron.daily/logrotate
- From: Sebastian Tennant
- Re: /etc/cron.daily/logrotate
- References:
- /etc/cron.daily/logrotate
- From: Sebastian Tennant
- Re: /etc/cron.daily/logrotate
- From: Sebastian Tennant
- /etc/cron.daily/logrotate
- Prev by Date: Re: norton commander
- Next by Date: Re: wajig < > apt-get
- Previous by thread: Re: /etc/cron.daily/logrotate
- Next by thread: Re: /etc/cron.daily/logrotate
- Index(es):
Relevant Pages
|