From 0201cd199cbf5c60182881f4cdb4a6a9bf3e9b8c Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 3 Sep 2017 11:09:44 +0100 Subject: added logrotate configuration --- tools/conf/etc/logrotate.d/postgres | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tools/conf/etc/logrotate.d/postgres (limited to 'tools/conf/etc/logrotate.d/postgres') diff --git a/tools/conf/etc/logrotate.d/postgres b/tools/conf/etc/logrotate.d/postgres new file mode 100644 index 0000000..fc59aad --- /dev/null +++ b/tools/conf/etc/logrotate.d/postgres @@ -0,0 +1,17 @@ +/var/log/pgsql { + weekly + compress + delaycompress + rotate 10 + notifempty + create 660 postgres postgres + sharedscripts + postrotate + if [ -f /var/run/syslog-ng.pid ]; then \ + kill -HUP `cat /var/run/syslog-ng.pid`; \ + fi; + endscript + +} + + -- cgit 1.4.1-2-gfad0