summaryrefslogtreecommitdiff
path: root/extra/pgbouncer/pgbouncer.logrotate
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pgbouncer/pgbouncer.logrotate')
-rw-r--r--extra/pgbouncer/pgbouncer.logrotate8
1 files changed, 8 insertions, 0 deletions
diff --git a/extra/pgbouncer/pgbouncer.logrotate b/extra/pgbouncer/pgbouncer.logrotate
new file mode 100644
index 000000000..2037875eb
--- /dev/null
+++ b/extra/pgbouncer/pgbouncer.logrotate
@@ -0,0 +1,8 @@
+/var/log/pgbouncer/pgbouncer.log {
+ copytruncate
+ missingok
+ notifempty
+ postrotate
+ /bin/kill -HUP $(cat /run/pgbouncer/pgbouncer.pid 2>/dev/null) 2> /dev/null || true
+ endscript
+}