summaryrefslogtreecommitdiff
path: root/distro/redhat/etc/logrotate.d/chef-solr
diff options
context:
space:
mode:
Diffstat (limited to 'distro/redhat/etc/logrotate.d/chef-solr')
-rw-r--r--distro/redhat/etc/logrotate.d/chef-solr8
1 files changed, 8 insertions, 0 deletions
diff --git a/distro/redhat/etc/logrotate.d/chef-solr b/distro/redhat/etc/logrotate.d/chef-solr
new file mode 100644
index 0000000000..54f18fe196
--- /dev/null
+++ b/distro/redhat/etc/logrotate.d/chef-solr
@@ -0,0 +1,8 @@
+/var/log/chef/solr.log {
+ rotate 12
+ weekly
+ compress
+ postrotate
+ /etc/init.d/chef-solr condrestart >/dev/null || :
+ endscript
+}