summaryrefslogtreecommitdiff
path: root/extra/pgbouncer/pgbouncer.logrotate
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-30 00:08:41 -0800
committerroot <root@rshg054.dnsready.net>2013-01-30 00:08:41 -0800
commitc25b7aa323ab71b1a524d15dbbe942dbebd55761 (patch)
treec7dd8d810c5d08168ee757083d3b6bce150c1915 /extra/pgbouncer/pgbouncer.logrotate
parentcb333f0d5d536b1436262e1b3e45647b22f136b0 (diff)
Wed Jan 30 00:08:41 PST 2013
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
+}