e679d6417d
Previously logrotate reported errors for files missing in "/var/log/glusterfs/geo-replication-slaves/*/*.log". Fixed by reordering directives in the example config. Change-Id: I7cdb9e0d82f08aa27d5e26664660204fdeb8e98e BUG: 1170825 Signed-off-by: Jan-Hendrik Zab <zab@l3s.de> Reviewed-on: http://review.gluster.org/9264 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Lalatendu Mohanty <lmohanty@redhat.com>
44 lines
1001 B
Plaintext
44 lines
1001 B
Plaintext
/var/log/glusterfs/geo-replication/*/*.log {
|
|
sharedscripts
|
|
rotate 52
|
|
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
|
|
rotate 52
|
|
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
|
|
rotate 52
|
|
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
|
|
}
|