about summary refs log tree commit diff stats
path: root/tools/conf/etc/logrotate.d/postgres
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2017-10-09 01:19:10 +0100
committerSilvino Silva <silvino@bk.ru>2017-10-09 01:19:10 +0100
commit46f82a26c6679573c1699311950f8699f09aedf3 (patch)
tree534f6c62b590298968d22b32a4d36366e0d583f2 /tools/conf/etc/logrotate.d/postgres
parentc0148601ebe2196375f26572624590cad2751845 (diff)
parentb3a6bc5ad6b8f294efcbcf3c0039626918eccd69 (diff)
downloaddoc-46f82a26c6679573c1699311950f8699f09aedf3.tar.gz
Merge branch 'h-0.3.2' into develop
Diffstat (limited to 'tools/conf/etc/logrotate.d/postgres')
-rw-r--r--tools/conf/etc/logrotate.d/postgres17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/conf/etc/logrotate.d/postgres b/tools/conf/etc/logrotate.d/postgres
new file mode 100644
index 0000000..fc59aad
--- /dev/null
+++ b/tools/conf/etc/logrotate.d/postgres
@@ -0,0 +1,17 @@
+/var/log/pgsql {
+    weekly
+    compress
+    delaycompress
+    rotate 10
+    notifempty
+    create 660 postgres postgres
+    sharedscripts
+    postrotate
+    if [ -f /var/run/syslog-ng.pid ]; then \
+    	kill -HUP `cat /var/run/syslog-ng.pid`; \
+    fi;
+    endscript
+
+}
+
+