source: darkpeak-services/roles/apache2/files/logrotate_config @ 1d1868f0

Last change on this file since 1d1868f0 was 1d1868f0, checked in by Mat Booth <mbooth@…>, 10 months ago

Fix #66 - Add logrotate config for the application-specific apache logs

  • Property mode set to 100644
File size: 887 bytes
Line 
1/var/log/apache2/*.log {
2        daily
3        missingok
4        rotate 14
5        compress
6        delaycompress
7        notifempty
8        create 640 root adm
9        sharedscripts
10        postrotate
11                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
12                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
13                fi;
14        endscript
15        prerotate
16                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
17                        run-parts /etc/logrotate.d/httpd-prerotate; \
18                fi; \
19        endscript
20}
21
22/var/log/apache2/*/*.log {
23        daily
24        missingok
25        rotate 14
26        compress
27        delaycompress
28        notifempty
29        create 640 root adm
30        sharedscripts
31        postrotate
32                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
33                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
34                fi;
35        endscript
36        prerotate
37                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
38                        run-parts /etc/logrotate.d/httpd-prerotate; \
39                fi; \
40        endscript
41}
Note: See TracBrowser for help on using the repository browser.