diff --git a/RHEL/repmgrd.logrotate b/RHEL/repmgrd.logrotate new file mode 100644 index 00000000..6ff27afa --- /dev/null +++ b/RHEL/repmgrd.logrotate @@ -0,0 +1,14 @@ +/var/log/repmgr/repmgr.log { + missingok + copytruncate + compress + notifempty + sharedscripts + create 0640 postgres postgres + nodateext + weekly + rotate 8 + postrotate + /bin/kill -HUP `cat /var/run/repmgr/repmgrd.pid 2>/dev/null` 2> /dev/null || true + endscript +} diff --git a/RHEL/repmgrd.sysconfig b/RHEL/repmgrd.sysconfig index 07136a50..5d60ff58 100644 --- a/RHEL/repmgrd.sysconfig +++ b/RHEL/repmgrd.sysconfig @@ -15,7 +15,7 @@ REPMGRD_ENABLED=no #REPMGRD_BIN=/usr/bin/repmgrd # pid file -#REPMGRD_PIDFILE=/var/lib/pgsql/repmgr/repmgrd.pid +#REPMGRD_PIDFILE=/var/run/repmgr/repmgrd.pid # log file -#REPMGRD_LOG=/var/lib/pgsql/repmgr/repmgrd.log +#REPMGRD_LOG=/var/log/repmgr/repmgrd.log