diff options
Diffstat (limited to 'extras/glusterfs-georep-logrotate')
| -rw-r--r-- | extras/glusterfs-georep-logrotate | 75 |
1 files changed, 50 insertions, 25 deletions
diff --git a/extras/glusterfs-georep-logrotate b/extras/glusterfs-georep-logrotate index 85e69d2c0d4..3e7ecf373a1 100644 --- a/extras/glusterfs-georep-logrotate +++ b/extras/glusterfs-georep-logrotate @@ -1,36 +1,61 @@ +/var/log/glusterfs/geo-replication/*/*.log { + sharedscripts + weekly + maxsize 10M + minsize 100k -rotate 52 -missingok - -compress -delaycompress -notifempty + # 6 months of logs are good enough + rotate 26 -/var/log/glusterfs/geo-replication/*/*.log { - sharedscripts - postrotate - for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do - /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true - done - endscript + missingok + compress + delaycompress + notifempty + postrotate + for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do + /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true + done + endscript } /var/log/glusterfs/geo-replication-slaves/*.log { - sharedscripts - postrotate - for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do - /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true - done - endscript + sharedscripts + weekly + maxsize 10M + minsize 100k + + # 6 months of logs are good enough + rotate 26 + + missingok + compress + delaycompress + notifempty + postrotate + for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do + /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true + done + endscript } /var/log/glusterfs/geo-replication-slaves/*/*.log { - sharedscripts - postrotate - for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do - /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true - done - endscript + sharedscripts + weekly + maxsize 10M + minsize 100k + + # 6 months of logs are good enough + rotate 26 + + missingok + compress + delaycompress + notifempty + postrotate + for pid in `ps -aef | grep glusterfs | egrep "\-\-aux-gfid-mount" | awk '{print $2}'`; do + /usr/bin/kill -HUP $pid > /dev/null 2>&1 || true + done + endscript } |
