summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2014-02-14 14:06:11 +0000
committerAlexys Jacob <ultrabug@gentoo.org>2014-02-14 14:06:11 +0000
commiteb3f62e7e260cd6209e1b2ea1905a8073f1f09a4 (patch)
tree30437c4fbd56a17c3c793f69614d68b868e9cf48 /sys-cluster/glusterfs/files
parentremoved pmask, media-plugins/{vdr-xxvautotimer,vdr-skinclassic,vdr-sky,vdr-sk... (diff)
downloadgentoo-2-eb3f62e7e260cd6209e1b2ea1905a8073f1f09a4.tar.gz
gentoo-2-eb3f62e7e260cd6209e1b2ea1905a8073f1f09a4.tar.bz2
gentoo-2-eb3f62e7e260cd6209e1b2ea1905a8073f1f09a4.zip
fix logrotate script wrt #490672
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Diffstat (limited to 'sys-cluster/glusterfs/files')
-rw-r--r--sys-cluster/glusterfs/files/glusterfs.logrotate34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys-cluster/glusterfs/files/glusterfs.logrotate b/sys-cluster/glusterfs/files/glusterfs.logrotate
new file mode 100644
index 000000000000..07ae7b9e54dc
--- /dev/null
+++ b/sys-cluster/glusterfs/files/glusterfs.logrotate
@@ -0,0 +1,34 @@
+# Rotate client logs
+/var/log/glusterfs/*.log {
+ weekly
+ rotate 52
+ missingok
+
+ # compress the logs, but from the .2 onwards
+ compress
+ delaycompress
+ notifempty
+
+ sharedscripts
+ postrotate
+ /usr/bin/killall -HUP glusterfs > /dev/null 2>&1 || true
+ /usr/bin/killall -HUP glusterd > /dev/null 2>&1 || true
+ endscript
+}
+
+# Rotate server logs
+/var/log/glusterfs/bricks/*.log {
+ weekly
+ rotate 52
+ missingok
+
+ # compress the logs, but from the .2 onwards
+ compress
+ delaycompress
+ notifempty
+
+ sharedscripts
+ postrotate
+ /usr/bin/killall -HUP glusterfsd > /dev/null 2>&1 || true
+ endscript
+}