]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/apache/files/apache2
6f97ef6d225baf99f94aec6c4dca9e7609469b72
[ansible.git] / playbooks / debian / roles / apache / files / apache2
1 /var/log/apache2/*.log
2 /var/log/apache2/*/*.log
3 {
4         daily
5         missingok
6         rotate 14
7         compress
8         delaycompress
9         notifempty
10         create 640 root adm
11         sharedscripts
12         postrotate
13                 if invoke-rc.d apache2 status > /dev/null 2>&1; then \
14                     invoke-rc.d apache2 reload > /dev/null 2>&1; \
15                 fi;
16         endscript
17         prerotate
18                 if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
19                         run-parts /etc/logrotate.d/httpd-prerotate; \
20                 fi; \
21         endscript
22 }