[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] logrotate problem



I am trying to rotate my maillog file every week and email the current log
file to a support address. I have added this entry to the file syslog in the
directory /etc/logrotate.d but nothing seems to be happening with it, can
anyone help


/var/log/maillog {
rotate 5
size=400k
mail support@xxxxxxxxxxxx
errors support@xxxxxxxxxxxx
postrotate
    /usr/bin/killall -HUP syslogd
endscript
}


thanks

Mark