[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Logrotate problem
- Subject: Re: [cobalt-users] Logrotate problem
- From: Chris Fragogiannis <franki@xxxxxxxx>
- Date: Sat Sep 8 22:54:05 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I have renamed webalizer.pl to awebalizer.pl, but the cron doesn't run the script anymore. I have to
run it manually. What's wrong? I have also renamed logrotate to zlogrotate.
>That's part of the solution. Out of the box, Webalizer uses the logs themselves as a history and rebuilds the data *completely* every night. So what you want to do is get webalizer to run before logrotate, *and* set Webalizer to incremental mode, which will cause it to keep its own history files rather than relying on the logs for them.
>
>1. Go into /etc/cron.daily and rename webalizer.pl to awebalizer.pl; for good measure rename logrotate to zlogrotate. Things in the cron folders are processed alphabetically.
>mv webalizer.pl awebalizer.pl
>mv logrotate zlogrotate
>2. Open /etc/webalizer.conf and find the line that deals with Incremental, turn it to ON and uncomment it. In the section below it, give your history files a name (the default is fine) and uncomment it as well.
>
>Then just for good measure, to get a head start on today's logs, go back to /etc/cron.daily and run webalizer manually one time.
>/webalizer.pl