Hello,
in my /etc/rsyslog.conf, I am calling external script to handle
mail.* logging:
mail.* action(type="omprog" name="blacklist-postfix"
binary="/usr/local/sbin/postfix.py" template="long-iso")
This custom script processes logs, and writes to /var/log/mail/mail.log
Everything works well, except my logs are not being logrotated properly.
This is my logrotate config:
/var/log/mail/mail.log {
rotate 4
weekly
sharedscripts
postrotate
invoke-rc.d rsyslog rotate > /dev/null
endscript
}
I suspect, the problem is that "invoke-rc.d rsyslog rotate" does rotate
rsyslog, but not my external script.
What would be the proper way to handle this?
Do I have to restart rsyslog, so that my script is terminated and
started anew?
_______________________________________________
rsyslog mailing list
https://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.