]> git.openstreetmap.org Git - chef.git/commitdiff
stats: nice update process
authorGrant Slater <git@firefishy.com>
Sun, 17 Feb 2019 18:01:41 +0000 (18:01 +0000)
committerGrant Slater <git@firefishy.com>
Sun, 17 Feb 2019 18:01:41 +0000 (18:01 +0000)
cookbooks/stats/templates/default/awstats.cron.erb

index 5d081e61994ff64ca8767ba64ccfc7b9c4fbd803..e5bafaffffa659c516efe8d28d4714a2828bed2c 100644 (file)
@@ -1,5 +1,5 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 <% @sites.each_with_index do |site,index| -%>
 # DO NOT EDIT - This file is being maintained by Chef
 
 <% @sites.each_with_index do |site,index| -%>
-0 <%= "%02d" % [ 8 + index * 2 ] %> * * <%= site[:days] %> www-data /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null
+0 <%= "%02d" % [ 8 + index * 2 ] %> * * <%= site[:days] %> www-data /usr/bin/nice -n 20 /usr/lib/cgi-bin/awstats.pl -config=<%= site[:name] %> -update > /dev/null
 <% end -%>
 <% end -%>