On Thu, Dec 23, 2004 at 11:56:42AM +0000, Antony Gelberg wrote:
> Perhaps I didn't explain properly.  I know cron is running (ps ax | grep 
> cron), but don't know how to check if it's doing what it's supposed to.

Apparently something's not doing what it's supposed to do if your logs
aren't getting rotated.

You can check if cron is doing anything by creating a new cron job that
echos some text or creates a file or something, using `crontab -e`

Man crontab(5) and crontab(1) if you don't know how to use it.

Or alternatively, put an executable script of your own in
/etc/cron.hourly or /etc/cron.daily and wait and see if it gets run.

What happens if you run the cron scripts directly?
(this checks the other side of the problem)

  /etc/cron.daily/sysklogd
  /etc/cron.weekly/sysklogd  (this is the one that should rotating
                             mail.log)
  /etc/cron.daily/logrotate


if they don't work, try to take the script apart and find out why they
don't work.


good luck, let's know if you need any more help.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to