Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80863 - /etc/logrotate.d/mysql has multiple errors
Summary: /etc/logrotate.d/mysql has multiple errors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 06:45 UTC by cody
Modified: 2005-02-05 14:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cody 2005-02-05 06:45:18 UTC
The mysql logrotate script appears to have two errors in it, this is the output when i run logrotate -f /etc/logrotate.d/mysql:

/tmp/logrotate.OCla45: line 4: missingok: command not found
/tmp/logrotate.OCla45: line 5: /sbin/kill: No such file or directory
error running shared postrotate script for /var/log/mysql/mysql.err /var/log/mysql/mysql.log /var/log/mysql/mysqld.err 

/sbin/kill doesn't exist on my box, and I don't think 'missingok' should be in the postrotate section.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-05 14:59:45 UTC
you got a bad logrotate, from a moment when the copy in CVS was screwed up a while ago.

emerge --sync and copy /usr/portage/dev-db/mysql/files/logrotate.mysql to /etc/logrotate.d/mysql.