File: nutlogd

package info (click to toggle)
nut 2.8.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,356 kB
  • sloc: ansic: 123,904; sh: 14,718; cpp: 12,558; makefile: 5,212; python: 1,114; perl: 855; xml: 47
file content (24 lines) | stat: -rw-r--r-- 581 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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
}