diff options
author | root <root@rshg054.dnsready.net> | 2013-01-30 00:08:41 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-01-30 00:08:41 -0800 |
commit | c25b7aa323ab71b1a524d15dbbe942dbebd55761 (patch) | |
tree | c7dd8d810c5d08168ee757083d3b6bce150c1915 /extra/pgbouncer/pgbouncer.logrotate | |
parent | cb333f0d5d536b1436262e1b3e45647b22f136b0 (diff) |
Wed Jan 30 00:08:41 PST 2013
Diffstat (limited to 'extra/pgbouncer/pgbouncer.logrotate')
-rw-r--r-- | extra/pgbouncer/pgbouncer.logrotate | 8 |
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 +} |