From: Ludovic CHEVALIER Date: Thu, 2 Mar 2017 14:26:28 +0000 (+0100) Subject: AjoutĀ : etc/logrotate.d/nginx.m4 X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fadmin.git;a=commitdiff_plain;h=c5ad8f9187b35efaf291dedc1eafd320bffca8d5 AjoutĀ : etc/logrotate.d/nginx.m4 --- diff --git a/srv/ateliers/etc/logrotate.d/... b/srv/ateliers/etc/logrotate.d/... new file mode 120000 index 0000000..951b30d --- /dev/null +++ b/srv/ateliers/etc/logrotate.d/... @@ -0,0 +1 @@ +../... \ No newline at end of file diff --git a/srv/ateliers/etc/logrotate.d/nginx.m4 b/srv/ateliers/etc/logrotate.d/nginx.m4 new file mode 100644 index 0000000..652ea35 --- /dev/null +++ b/srv/ateliers/etc/logrotate.d/nginx.m4 @@ -0,0 +1,22 @@ +/var/log/nginx/*.log +/home/www/log/[^php5]*/*/*/*.log +/home/www/log/[^php5]*/*/*/tls/*.log +/home/www/log/*/nginx/*.log +{ + weekly + missingok + rotate 52 + compress + delaycompress + notifempty + create 0640 www-data adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ + run-parts /etc/logrotate.d/httpd-prerotate; \ + fi \ + endscript + postrotate + sv reload nginx > /dev/null 2>&1 + endscript +}