[PLUG] (no subject)

Russ Johnson russj at dimstar.net
Thu Oct 3 20:19:39 UTC 2002


Rich Shepard wrote:

>[root at salmo /etc]# /usr/sbin/logrotate -d /etc/logrotate.conf 
>
...much output deleted...

>reading config file maillog
>reading config info for /var/log/maillog 
>
There's the important part. And no reported errors..

>truncating /var/log/maillog
>
It says it's truncating... Were you running as root so that it would 
have permission to do so?

>/var/log/maillog {
>    daily
>    rotate 4
>    copytruncate
>    notifempty
>    missingok
>    postrotate
>        /usr/bin/killall -HUP syslogd
>    endscript
>}
>
>  Is there something here that needs correcting?
>
See what happens when you simplify this. The syslog logrotate 
configuration file only has

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

in it. Put this in your maillog stanza:

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

I believe it should inherit the rotate 4 from /etc/logrotate.conf, and 
I'm not sure the rest is needed.


-- 
--
Russ Johnson
Dimension 7/Stargate Online
http://www.dimstar.net

Random thought #11 (Collect all 17)
"Every year, back comes Spring, with nasty little birds yapping their fool heads off and the ground all mucked up with plants." - Dorothy Parker






More information about the PLUG mailing list