27143073b1cec414cf7fd89d6c25dd9c506873c8
[mirror/dsa-puppet.git] / modules / syslog-ng / files / syslog-ng.logrotate
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 /var/log/auth.log {
7    rotate 4
8    missingok
9    notifempty
10    weekly
11    compress
12 }
13
14 /var/log/cron.log {
15    rotate 4
16    weekly
17    missingok
18    notifempty
19    compress
20 }
21
22 /var/log/daemon.log {
23    rotate 7
24    weekly
25    missingok
26    notifempty
27    compress
28 }
29
30 /var/log/debug {
31    rotate 4
32    weekly
33    missingok
34    notifempty
35    compress
36 }
37
38 /var/log/kern.log {
39    rotate 4
40    weekly
41    missingok
42    notifempty
43    compress
44 }
45
46 /var/log/lpr.log {
47    rotate 4
48    weekly
49    missingok
50    notifempty
51    compress
52 }
53
54 /var/log/mail.err {
55    rotate 30
56    daily
57    dateext
58    missingok
59    notifempty
60    compress
61 }
62
63 /var/log/mail.info {
64    rotate 30
65    daily
66    dateext
67    missingok
68    notifempty
69    compress
70 }
71
72 /var/log/mail.log {
73    rotate 30
74    daily
75    dateext
76    missingok
77    notifempty
78    compress
79    # listmaster asked for this one
80    delaycompress
81 }
82
83 /var/log/mail.warn {
84    rotate 30
85    daily
86    dateext
87    missingok
88    notifempty
89    compress
90 }
91
92 /var/log/messages {
93    rotate 4
94    weekly
95    missingok
96    notifempty
97    compress
98 }
99
100
101 /var/log/user.log {
102    rotate 4
103    weekly
104    missingok
105    notifempty
106    compress
107 }
108
109 /var/log/uucp.log {
110    rotate 4
111    missingok
112    notifempty
113    weekly
114    compress
115 }
116
117 /var/log/syslog {
118    rotate 7
119    daily
120    compress
121    postrotate
122       if [ -d /run/systemd/system ]; then
123           /bin/systemctl reload syslog-ng.service >/dev/null
124       else
125           /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
126       fi
127    endscript
128 }