about summary refs log tree commit diff stats
path: root/linux/conf/logrotate.d/postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'linux/conf/logrotate.d/postgresql')
-rw-r--r--linux/conf/logrotate.d/postgresql10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/conf/logrotate.d/postgresql b/linux/conf/logrotate.d/postgresql
new file mode 100644
index 0000000..8c16bfa
--- /dev/null
+++ b/linux/conf/logrotate.d/postgresql
@@ -0,0 +1,10 @@
+# this log is only used by postgresql at startup
+# before start using syslog so there is no need
+# to reload syslog-ng or syslog-ng
+/var/log/postgresql {
+    # uncomment this if you want your log files compressed
+    delaycompress
+    compress
+    notifempty
+    create 664 postgres postgres
+}