]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - tools/mkflash/logrotate.conf
Neue Proxysteuerung.
[people/pmueller/ipfire-2.x.git] / tools / mkflash / logrotate.conf
1 # rotate log files weekly
2 weekly
3
4 # keep 2 weeks worth of backlogs
5 rotate 2
6
7 # create new (empty) log files after rotating old ones
8 create
9
10 # Maximum logfile size of 1MB
11 size 1M
12
13 # uncomment this if you want your log files compressed
14 compress
15
16 # wtmp
17 /var/log/wtmp {
18 weekly
19 create 0664 root utmp
20 rotate 1
21 }
22
23 /var/log/httpd/access_log /var/log/httpd/error_log /var/log/httpd/ssl_request_log /var/log/httpd/ssl_engine_log {
24 missingok
25 sharedscripts
26 postrotate
27 /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
28 endscript
29 }
30
31 /var/log/snort/alert {
32 weekly
33 copytruncate
34 ifempty
35 missingok
36 }
37
38 /var/log/snort/scan.log {
39 weekly
40 copytruncate
41 compress
42 ifempty
43 missingok
44 postrotate
45 /usr/bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec rm -rf {} \;
46 /usr/local/bin/restartsnort
47 endscript
48 }
49
50 /var/log/squid/access.log {
51 weekly
52 copytruncate
53 ifempty
54 missingok
55 }
56
57 /var/log/squid/cache.log {
58 weekly
59 rotate 3
60 copytruncate
61 compress
62 missingok
63 }
64
65 /var/log/squid/store.log {
66 weekly
67 rotate 3
68 copytruncate
69 compress
70 missingok
71 postrotate
72 /bin/chmod -R ugo+rX /var/log/squid
73 /usr/sbin/squid -k rotate
74 endscript
75 }
76
77 /var/log/messages /var/log/boot.log {
78 sharedscripts
79 ifempty
80 postrotate
81 /bin/chmod ugo+rX /var/log/messages
82 /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
83 endscript
84 }