[ale] CRON Logging
Joe Steele
joe at madewell.com
Tue Sep 26 10:48:06 EDT 2000
Oops. Forgot to mention that you must modify another line in
/etc/syslog.conf which sends entries to /var/log/messages. You
probably have a line that looks something like:
*.info;lpr.notice;mail.none;authpriv.none /var/log/messages
You need to add "cron.none;" at the beginning, thusly:
cron.none;*.info;lpr.notice;mail.none;authpriv.none /var/log/messages
Also, I should correct myself regarding logrotate. The script
should send a HUP signal to syslogd, not to crond:
/var/log/cron {
postrotate
/usr/bin/killall -HUP syslogd
endscript
}
If you have a "/etc/logrotate.d/syslog", then it would probably be more
logical to add the script there, rather than creating /etc/logrotate.d/cron.
My errors stem from the fact that the cron that I use (RedHat based)
was built to log messages using its own log file rather than through syslogd.
--Joe
-----Original Message-----
From: Robert Heaven [SMTP:robertheaven at mediaone.net]
Sent: Tuesday, September 26, 2000 9:05 AM
To: ale at ale.org
Subject: Re: [ale] CRON Logging
Well, this started logging cron messages to the /var/log/cron log file.
Unfortunately, cron is now logging it's messages in both /var/log/cron and
/var/log/messages. The objective was to stop logging to /var/log/messages.
> Try adding the following line at the top of /etc/syslog.conf:
>
> cron.* /var/log/cron
>
> If you are using logrotate (and depending on its configuration), you might
> also want to create a file /etc/logrotate.d/cron containing the following:
>
> /var/log/cron {
> postrotate
> /usr/bin/killall -HUP crond
> endscript
> }
>
> --Joe
>>
>> Is there a way to make cron send it's log messages to something other
than
>> /var/log/messages? I keep looking for some kind of config file but can't
find
>> it.
>> --
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list