From dd0342ded4c793210c390e97d40b338321ec5151 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Zab Date: Thu, 4 Dec 2014 23:41:09 +0100 Subject: Stop logrotate from complaining about missing files. 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: 1165133 Signed-off-by: Jan-Hendrik Zab Reviewed-on: http://review.gluster.org/9239 Reviewed-by: Lalatendu Mohanty Tested-by: Gluster Build System Reviewed-by: Raghavendra Bhat Tested-by: Raghavendra Bhat --- extras/glusterfs-georep-logrotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/glusterfs-georep-logrotate b/extras/glusterfs-georep-logrotate index 381db8ba464..6fdb8c65aaf 100644 --- a/extras/glusterfs-georep-logrotate +++ b/extras/glusterfs-georep-logrotate @@ -30,12 +30,12 @@ /var/log/glusterfs/geo-replication-slaves/*/*.log { sharedscripts - postrotate 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 -- cgit