Просмотр исходного кода

Update logrotate configurations.

Raphael Schneeberger 7 лет назад
Родитель
Сommit
de5cd53a46

+ 16 - 16
install/debian/8/logrotate/apache2

@@ -1,19 +1,19 @@
 /var/log/apache2/*.log /var/log/apache2/domains/*log {
-        weekly
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 root adm
-        sharedscripts
-        postrotate
-                /etc/init.d/apache2 reload > /dev/null || true
-                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 root adm
+    sharedscripts
+    postrotate
+        /etc/init.d/apache2 reload > /dev/null || true
+        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
         endscript
-        prerotate
-                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
-                        run-parts /etc/logrotate.d/httpd-prerotate; \
-                fi; \
+    prerotate
+        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+        run-parts /etc/logrotate.d/httpd-prerotate; \
+        fi; \
         endscript
-}
+}

+ 10 - 10
install/debian/8/logrotate/dovecot

@@ -1,12 +1,12 @@
 /var/log/dovecot*.log {
-  weekly
-  rotate 4
-  missingok
-  notifempty
-  compress
-  delaycompress
-  sharedscripts
-  postrotate
+    rotate 4  
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    sharedscripts
+    postrotate
     doveadm log reopen
-  endscript
-}
+    endscript
+}

+ 3 - 3
install/debian/8/logrotate/hestia

@@ -1,7 +1,7 @@
 /usr/local/hestia/log/*.log {
+    rotate 12
+    monthly
     missingok
     notifempty
-    size 30k
-    yearly
     create 0600 root root
-}
+}

+ 11 - 11
install/debian/8/logrotate/nginx

@@ -1,13 +1,13 @@
 /var/log/nginx/*log /var/log/nginx/domains/*log {
-        daily
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 nginx adm
-        sharedscripts
-        postrotate
-                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 nginx adm
+    sharedscripts
+    postrotate
+        [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
         endscript
-}
+}

+ 16 - 16
install/debian/9/logrotate/apache2

@@ -1,19 +1,19 @@
 /var/log/apache2/*.log /var/log/apache2/domains/*log {
-        weekly
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 root adm
-        sharedscripts
-        postrotate
-                /etc/init.d/apache2 reload > /dev/null || true
-                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 root adm
+    sharedscripts
+    postrotate
+        /etc/init.d/apache2 reload > /dev/null || true
+        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
         endscript
-        prerotate
-                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
-                        run-parts /etc/logrotate.d/httpd-prerotate; \
-                fi; \
+    prerotate
+        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+        run-parts /etc/logrotate.d/httpd-prerotate; \
+        fi; \
         endscript
-}
+}

+ 10 - 10
install/debian/9/logrotate/dovecot

@@ -1,12 +1,12 @@
 /var/log/dovecot*.log {
-  weekly
-  rotate 4
-  missingok
-  notifempty
-  compress
-  delaycompress
-  sharedscripts
-  postrotate
+    rotate 4  
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    sharedscripts
+    postrotate
     doveadm log reopen
-  endscript
-}
+    endscript
+}

+ 3 - 3
install/debian/9/logrotate/hestia

@@ -1,7 +1,7 @@
 /usr/local/hestia/log/*.log {
+    rotate 12
+    monthly
     missingok
     notifempty
-    size 30k
-    yearly
     create 0600 root root
-}
+}

+ 11 - 11
install/debian/9/logrotate/nginx

@@ -1,13 +1,13 @@
 /var/log/nginx/*log /var/log/nginx/domains/*log {
-        daily
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 nginx adm
-        sharedscripts
-        postrotate
-                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 nginx adm
+    sharedscripts
+    postrotate
+        [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
         endscript
-}
+}

+ 16 - 16
install/ubuntu/14.04/logrotate/apache2

@@ -1,19 +1,19 @@
 /var/log/apache2/*.log /var/log/apache2/domains/*log {
-        weekly
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 root adm
-        sharedscripts
-        postrotate
-                /etc/init.d/apache2 reload > /dev/null || true
-                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 root adm
+    sharedscripts
+    postrotate
+        /etc/init.d/apache2 reload > /dev/null || true
+        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
         endscript
-        prerotate
-                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
-                        run-parts /etc/logrotate.d/httpd-prerotate; \
-                fi; \
+    prerotate
+        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+        run-parts /etc/logrotate.d/httpd-prerotate; \
+        fi; \
         endscript
-}
+}

+ 10 - 10
install/ubuntu/14.04/logrotate/dovecot

@@ -1,12 +1,12 @@
 /var/log/dovecot*.log {
-  weekly
-  rotate 4
-  missingok
-  notifempty
-  compress
-  delaycompress
-  sharedscripts
-  postrotate
+    rotate 4  
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    sharedscripts
+    postrotate
     doveadm log reopen
-  endscript
-}
+    endscript
+}

+ 3 - 3
install/ubuntu/14.04/logrotate/hestia

@@ -1,7 +1,7 @@
 /usr/local/hestia/log/*.log {
+    rotate 12
+    monthly
     missingok
     notifempty
-    size 30k
-    yearly
     create 0600 root root
-}
+}

+ 11 - 11
install/ubuntu/14.04/logrotate/nginx

@@ -1,13 +1,13 @@
 /var/log/nginx/*log /var/log/nginx/domains/*log {
-        daily
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 nginx adm
-        sharedscripts
-        postrotate
-                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 nginx adm
+    sharedscripts
+    postrotate
+        [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
         endscript
-}
+}

+ 16 - 16
install/ubuntu/16.04/logrotate/apache2

@@ -1,19 +1,19 @@
 /var/log/apache2/*.log /var/log/apache2/domains/*log {
-        weekly
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 root adm
-        sharedscripts
-        postrotate
-                /etc/init.d/apache2 reload > /dev/null || true
-                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 root adm
+    sharedscripts
+    postrotate
+        /etc/init.d/apache2 reload > /dev/null || true
+        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
         endscript
-        prerotate
-                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
-                        run-parts /etc/logrotate.d/httpd-prerotate; \
-                fi; \
+    prerotate
+        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+        run-parts /etc/logrotate.d/httpd-prerotate; \
+        fi; \
         endscript
-}
+}

+ 10 - 10
install/ubuntu/16.04/logrotate/dovecot

@@ -1,12 +1,12 @@
 /var/log/dovecot*.log {
-  weekly
-  rotate 4
-  missingok
-  notifempty
-  compress
-  delaycompress
-  sharedscripts
-  postrotate
+    rotate 4  
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    sharedscripts
+    postrotate
     doveadm log reopen
-  endscript
-}
+    endscript
+}

+ 3 - 3
install/ubuntu/16.04/logrotate/hestia

@@ -1,7 +1,7 @@
 /usr/local/hestia/log/*.log {
+    rotate 12
+    monthly
     missingok
     notifempty
-    size 30k
-    yearly
     create 0600 root root
-}
+}

+ 11 - 11
install/ubuntu/16.04/logrotate/nginx

@@ -1,13 +1,13 @@
 /var/log/nginx/*log /var/log/nginx/domains/*log {
-        daily
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 nginx adm
-        sharedscripts
-        postrotate
-                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 nginx adm
+    sharedscripts
+    postrotate
+        [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
         endscript
-}
+}

+ 16 - 16
install/ubuntu/18.04/logrotate/apache2

@@ -1,19 +1,19 @@
 /var/log/apache2/*.log /var/log/apache2/domains/*log {
-        weekly
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 root adm
-        sharedscripts
-        postrotate
-                /etc/init.d/apache2 reload > /dev/null || true
-                [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 root adm
+    sharedscripts
+    postrotate
+        /etc/init.d/apache2 reload > /dev/null || true
+        [ ! -f /var/run/nginx.pid ] || kill -USR1 `cat /var/run/nginx.pid`
         endscript
-        prerotate
-                if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
-                        run-parts /etc/logrotate.d/httpd-prerotate; \
-                fi; \
+    prerotate
+        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
+        run-parts /etc/logrotate.d/httpd-prerotate; \
+        fi; \
         endscript
-}
+}

+ 10 - 10
install/ubuntu/18.04/logrotate/dovecot

@@ -1,12 +1,12 @@
 /var/log/dovecot*.log {
-  weekly
-  rotate 4
-  missingok
-  notifempty
-  compress
-  delaycompress
-  sharedscripts
-  postrotate
+    rotate 4  
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    sharedscripts
+    postrotate
     doveadm log reopen
-  endscript
-}
+    endscript
+}

+ 3 - 3
install/ubuntu/18.04/logrotate/hestia

@@ -1,7 +1,7 @@
 /usr/local/hestia/log/*.log {
+    rotate 12
+    monthly
     missingok
     notifempty
-    size 30k
-    yearly
     create 0600 root root
-}
+}

+ 11 - 11
install/ubuntu/18.04/logrotate/nginx

@@ -1,13 +1,13 @@
 /var/log/nginx/*log /var/log/nginx/domains/*log {
-        daily
-        missingok
-        rotate 52
-        compress
-        delaycompress
-        notifempty
-        create 640 nginx adm
-        sharedscripts
-        postrotate
-                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
+    rotate 4
+    weekly
+    missingok
+    notifempty
+    compress
+    delaycompress
+    create 640 nginx adm
+    sharedscripts
+    postrotate
+        [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
         endscript
-}
+}