Reload syslog-ng after daemon.log rotation to prevent cron spam
[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    postrotate
29       if [ -d /run/systemd/system ]; then
30           /bin/systemctl reload syslog-ng.service >/dev/null
31       else
32           /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
33       fi
34    endscript
35 }
36
37 /var/log/debug {
38    rotate 4
39    weekly
40    missingok
41    notifempty
42    compress
43 }
44
45 /var/log/kern.log {
46    rotate 4
47    weekly
48    missingok
49    notifempty
50    compress
51 }
52
53 /var/log/lpr.log {
54    rotate 4
55    weekly
56    missingok
57    notifempty
58    compress
59 }
60
61 /var/log/mail.err {
62    rotate 30
63    daily
64    dateext
65    missingok
66    notifempty
67    compress
68 }
69
70 /var/log/mail.info {
71    rotate 30
72    daily
73    dateext
74    missingok
75    notifempty
76    compress
77 }
78
79 /var/log/mail.log {
80    rotate 30
81    daily
82    dateext
83    missingok
84    notifempty
85    compress
86    # listmaster asked for this one
87    delaycompress
88 }
89
90 /var/log/mail.warn {
91    rotate 30
92    daily
93    dateext
94    missingok
95    notifempty
96    compress
97 }
98
99 /var/log/messages {
100    rotate 4
101    weekly
102    missingok
103    notifempty
104    compress
105 }
106
107
108 /var/log/user.log {
109    rotate 4
110    weekly
111    missingok
112    notifempty
113    compress
114 }
115
116 /var/log/uucp.log {
117    rotate 4
118    missingok
119    notifempty
120    weekly
121    compress
122 }
123
124 /var/log/syslog {
125    rotate 7
126    daily
127    compress
128    postrotate
129       if [ -d /run/systemd/system ]; then
130           /bin/systemctl reload syslog-ng.service >/dev/null
131       else
132           /usr/sbin/invoke-rc.d syslog-ng reload >/dev/null
133       fi
134    endscript
135 }