From c5ad8f9187b35efaf291dedc1eafd320bffca8d5 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Thu, 2 Mar 2017 15:26:28 +0100 Subject: [PATCH] =?utf8?q?Ajout=C2=A0:=20etc/logrotate.d/nginx.m4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- srv/ateliers/etc/logrotate.d/... | 1 + srv/ateliers/etc/logrotate.d/nginx.m4 | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 120000 srv/ateliers/etc/logrotate.d/... create mode 100644 srv/ateliers/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 +} -- 2.20.1