AjoutĀ : etc/logrotate.d/nginx.m4
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 2 Mar 2017 14:26:28 +0000 (15:26 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Thu, 2 Mar 2017 14:26:28 +0000 (15:26 +0100)
srv/ateliers/etc/logrotate.d/... [new symlink]
srv/ateliers/etc/logrotate.d/nginx.m4 [new file with mode: 0644]

diff --git a/srv/ateliers/etc/logrotate.d/... b/srv/ateliers/etc/logrotate.d/...
new file mode 120000 (symlink)
index 0000000..951b30d
--- /dev/null
@@ -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 (file)
index 0000000..652ea35
--- /dev/null
@@ -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
+}