From a5d73daabf6df95bc73b186d92f3e2d1239a6f8a Mon Sep 17 00:00:00 2001 From: Lalatendu Mohanty Date: Wed, 29 Oct 2014 00:44:33 +0530 Subject: logrotate: gluster logrotate config should not be global Issue : Previously glusterfs logrotate config file pollutes global config. So moved the directives inside the curly braces, so they don't pollute the global config state. Change-Id: I8836893dfcdf457d9c5d766612d687bfce64e2ae BUG: 1126802 Signed-off-by: Lalatendu Mohanty Reviewed-on: http://review.gluster.org/8994 Reviewed-by: Niels de Vos Tested-by: Gluster Build System --- extras/glusterfs-logrotate | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'extras/glusterfs-logrotate') diff --git a/extras/glusterfs-logrotate b/extras/glusterfs-logrotate index 373ec2e0b92..e3319afaa96 100644 --- a/extras/glusterfs-logrotate +++ b/extras/glusterfs-logrotate @@ -1,17 +1,12 @@ -# perform the log rotate every week -weekly -# keep the backup of 52 weeks -rotate 52 -missingok - -# compress the logs, but from the .2 onwards -compress -delaycompress -notifempty - # Rotate client logs /var/log/glusterfs/*.log { sharedscripts + weekly + rotate 52 + missingok + compress + delaycompress + notifempty postrotate /usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true /usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true @@ -21,6 +16,12 @@ notifempty # Rotate server logs /var/log/glusterfs/bricks/*.log { sharedscripts + weekly + rotate 52 + missingok + compress + delaycompress + notifempty postrotate /usr/bin/killall -HUP glusterfsd > /dev/null 2>&1 || true endscript -- cgit