nut/scripts/logrotate/nutlogd

25 lines
581 B
Text
Raw Normal View History

2012-06-01 13:55:19 +00:00
# Log rotation configuration for NUT:
# Rotate NUT log file(s) either monthly or when exceeding 5 Mb
#
# For more information, refer to logrotate(8) manual page:
# http://linuxcommand.org/man_pages/logrotate8.html
#
# To install this file, use:
# $ cp nutlogd /etc/logrotate.d/
# $ chmod 644 /etc/logrotate.d/nutlogd
# $ chown root.root /etc/logrotate.d/nutlogd
#
# Log files must have "nut-" prefix and ".log" suffix
/var/log/nut-*.log {
missingok
notifempty
size=5M
rotate 12
monthly
postrotate
/usr/bin/killall -HUP upslog
endscript
}