summaryrefslogtreecommitdiff
path: root/system/postgresql/postgresql.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'system/postgresql/postgresql.logrotate')
-rw-r--r--system/postgresql/postgresql.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/postgresql/postgresql.logrotate b/system/postgresql/postgresql.logrotate
new file mode 100644
index 0000000000..c8724992e2
--- /dev/null
+++ b/system/postgresql/postgresql.logrotate
@@ -0,0 +1,8 @@
+/var/log/postgresql.log {
+ postrotate
+ /etc/rc.d/rc.postgresql reload 2>&1 > /dev/null
+ endscript
+ size=100k
+ rotate 5
+ create 0640 postgres wheel
+}