
rotate 52
missingok

compress
delaycompress
notifempty

/var/log/glusterfs/geo-replication/*/*.log {
    prerotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGSTOP -$pid
        done
    endscript
    postrotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGCONT $pid
        done
    endscript
}


/var/log/glusterfs/geo-replication-slaves/*.log {
    prerotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGSTOP -$pid
        done
    endscript
    postrotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGCONT $pid
        done
    endscript
}


/var/log/glusterfs/geo-replication-slaves/*/*.log {
    prerotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGSTOP -$pid
        done
    endscript
    postrotate
        for pid in `find /var/lib/glusterd/geo-replication/ -type f -name "*.pid" | xargs cat`
        do
            /usr/bin/kill -SIGCONT $pid
        done
    endscript
}
