LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   /etc/cron.daily/logrotate (https://www.linuxquestions.org/questions/ubuntu-63/etc-cron-daily-logrotate-668608/)

tommytomato 09-09-2008 04:38 AM

/etc/cron.daily/logrotate
 
Hi all

I keep getting an email about /etc/cron.daily/logrotate

I cant remember if I edited the file or not, got some thing to do with awstats which i installed a while ago.

can any one help me out on whats going on.

Quote:

/etc/cron.daily/logrotate:
Error: Couldn't open config file "awstats.mydomain.com.conf" nor "awstats.conf" after searching in path "/usr/lib/cgi-bin,/etc/awstats,/usr/local/etc/awstats,/etc,/etc/opt/awstats": No such file or directory

- Did you use correct config parameter ?
Example: If your config file is awstats.mysite.conf, use -config=mysite
- Did you create your config file 'awstats.mydomain.com.conf' ?
If not, you can run "awstats_configure.pl"
from command line, or create it manually.

Check config file, permissions and AWStats documentation (in 'docs' directory).
error: error running shared prerotate script for /var/log/apache2/*.log
run-parts: /etc/cron.daily/logrotate exited with return code 1
TT

zmanea 09-09-2008 08:59 PM

Do you have a awstats file in /etc/logrotate.d ? If you do you can either delete it to stop it from trying to rotate anything related to awstats.


All times are GMT -5. The time now is 06:55 AM.