diff options
Diffstat (limited to 'extras')
-rw-r--r-- | extras/glusterfs-georep-logrotate | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/extras/glusterfs-georep-logrotate b/extras/glusterfs-georep-logrotate index 6a69ab1e35a..85e69d2c0d4 100644 --- a/extras/glusterfs-georep-logrotate +++ b/extras/glusterfs-georep-logrotate @@ -7,12 +7,30 @@ delaycompress notifempty /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 } /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 } /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 } |