On 12-May-2001 [EMAIL PROTECTED] wrote:
> 
> 
> On Sat, 12 May 2001, Marco Calistri wrote:
> 
>> Hello,after upgrade of my Red Hat 6.2 to Seawolf 7.1,
>> I'm receiving a dayly mail from Cron daemon that I'm unable
>> to stop or understand.
>> I made a check with my second pc where 6.2 is still running
>> about /etc/syslog /etc/crontab and so on,
>> but I've not discovered any particular differences.
> 
> Look in /etc/logrotate.d/syslog and maybe other files in
> /etc/logrotate.d or /etc/logrotate.conf.  It seems logrotate is
> misconfigured and is trying to process syslog twice.
> 
> Have a read of man logrotate in case you wonder what it is.
> 
> Lawson

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/messages {
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null ||
true
    endscript
}

/var/log/secure {
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null ||
true
    endscript
}

/var/log/maillog {
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null ||
true
    endscript
}

/var/log/spooler {
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null ||
true
    endscript
}

/var/log/boot.log {
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null ||
true
    endscript
}

/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??
           
-- 
Regards,: Marco Calistri <[EMAIL PROTECTED]>
gpg key available on http://www.qsl.net/ik5bcu
Xfmail 1.4.7p2 on linux RedHat 7.1 kernel-2.4.2
--
How many weeks are there in a light year?

-
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