Hi,
Thanks for the info..
So what do I have to do?
How can I see it if it is added to "postrotate"
Here is the output....
[root (at mark) ns8 admin]# ls /usr/sbin/zz_awstats-run.pl
ls: /usr/sbin/zz_awstats-run.pl: No such file or directory
[root (at mark) ns8 admin]# ls -ail /etc/cron.daily
total 108
196752 drwxr-xr-x 2 root root 4096 Sep 15 11:34 .
196609 drwxr-xr-x 65 root root 12288 Sep 19 19:02 ..
197058 lrwxrwxrwx 1 root root 28 May 4 2005 00-logwatch ->
../log.d/scripts/logwatch.pl
198386 -rwxr-xr-x 1 root root 418 Apr 26 17:36 00-makewhatis.cron
197559 -rwxr-xr-x 1 root root 135 Feb 21 2005 00webalizer
198291 -rwxr-xr-x 1 root root 998 Jan 1 2006 clean.quarantine
197384 -rwxr-xr-x 1 root root 150 Jan 15 2006 freshclam
197019 -rwxr-xr-x 1 root root 180 Aug 22 2005 logrotate
196980 -rwxr-xr-x 1 root root 2133 Dec 1 2004 prelink
196743 -rwxr-xr-x 1 root root 104 Aug 12 18:01 rpm
197733 -rwx------ 1 root root 8296 Jun 21 11:47 sitestats_purgeOmatic.pl
197010 -rwxr-xr-x 1 root root 121 Aug 21 2005 slocate.cron
197282 -rwxr-xr-x 1 root root 284 May 4 2005 tmpwatch
197760 -rwxr-xr-x 1 root root 64 Jun 21 11:47 tmpwatch_sitestats
198292 -rwxr-xr-x 1 root root 585 Jan 1 2006 update_phishing_sites
198433 -rwxr-xr-x 1 root root 158 Aug 12 14:40 yum.cron
Thanks in advance.
Regards,
Mitch
-----Original Message-----
From: Brian N. Smith [mailto:brian (at mark) nuonce.net]
Sent: Wednesday, September 20, 2006 3:32 PM
To: coba-e (at mark) bluequartz.org
Subject: [coba-e:07135] Re: awstats
> What does;
> ls /usr/sbin/zz_awstats-run.pl
> Yield?
>
> Seems like that file should be in
> /etc/cron.daily
The file was moved out of "cron.daily" because logrotate would compress the
logs prior to awstats being ran. This would make the stats way off.
So, it was designed to add it to the "postrotate" portion in logrotate.
That way it was ran prior to having the website's logs compressed.
Thanks,
Brian