mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
Added logrotate configuration file (for those who would like one ;))
and changed parameters in sysconfig file so that we use /var/log for logs and /var/run for pid files.
This commit is contained in:
14
RHEL/repmgrd.logrotate
Normal file
14
RHEL/repmgrd.logrotate
Normal file
@@ -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
|
||||||
|
}
|
||||||
@@ -15,7 +15,7 @@ REPMGRD_ENABLED=no
|
|||||||
#REPMGRD_BIN=/usr/bin/repmgrd
|
#REPMGRD_BIN=/usr/bin/repmgrd
|
||||||
|
|
||||||
# pid file
|
# pid file
|
||||||
#REPMGRD_PIDFILE=/var/lib/pgsql/repmgr/repmgrd.pid
|
#REPMGRD_PIDFILE=/var/run/repmgr/repmgrd.pid
|
||||||
|
|
||||||
# log file
|
# log file
|
||||||
#REPMGRD_LOG=/var/lib/pgsql/repmgr/repmgrd.log
|
#REPMGRD_LOG=/var/log/repmgr/repmgrd.log
|
||||||
|
|||||||
Reference in New Issue
Block a user