On 13-May-2001 [EMAIL PROTECTED] wrote:
> 
> 
> On Sun, 13 May 2001, Marco Calistri wrote:
> 
>>
>> Hi Lawson,nice to meet you again,well I received a similar
>> suggestion from another List and looking to my /etc/logrotate.d/syslog
>> didn't took any solution I have not duplicates in there but just
>> one line for /var/log/cron:
>>
>> #/etc/logrotate.d/syslog
>> /var/log/cron {
> 
> ^^^^^^^^^^^^^^^^^^
> 
>>     postrotate
>>         /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null ||
>> true
>>     endscript
>> }
>>
>> Instead my /etc/logrotate.d/cron looks like:
>>
>> #/etc/logrotate.d/cron
>>
>> /var/log/cron {
> 
> ^^^^^^^^^^^^^^^^
>>
>>     missingok
>>     notifempty
>>     postrotate
>>         /bin/kill -HUP `/bin/cat /var/run/crond.pid`
>>     endscript
>> }
>>
>> --
>> It may be I should comment out last line from logrotate.d script??
>>
> HUH?  Are those I marked ^^^^ not 2 entries in your logrotate control
> files for the same log?  The original message was
> 
> error: syslog:26 duplicate log entry for /var/log/cron
> 
> It had already processed the /etc/logrotate.d/cron file when it saw at
> line 26 of /etc/logrotate.d/syslog another entry for /var/log/cron and
> said, "Now, hang on!  Which do you mean?"
> 
> I would rip the /var/log/cron entry out of /etc/logrotate.d/syslog.
> Lawson

Done!:commented out (just in case) but I think your cure
is the right one!

TKS!

--Marco
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to