AjoutĀ : etc/logrotate.d/nginx.m4
[lhc/admin.git] / srv / ateliers / etc / logrotate.d / nginx.m4
1 /var/log/nginx/*.log
2 /home/www/log/[^php5]*/*/*/*.log
3 /home/www/log/[^php5]*/*/*/tls/*.log
4 /home/www/log/*/nginx/*.log
5 {
6 weekly
7 missingok
8 rotate 52
9 compress
10 delaycompress
11 notifempty
12 create 0640 www-data adm
13 sharedscripts
14 prerotate
15 if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
16 run-parts /etc/logrotate.d/httpd-prerotate; \
17 fi \
18 endscript
19 postrotate
20 sv reload nginx > /dev/null 2>&1
21 endscript
22 }