From: Grant Slater Date: Sun, 17 Feb 2019 18:01:41 +0000 (+0000) Subject: stats: nice update process X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/f98d656899137e93216190bcc6613e15607c987c?ds=sidebyside stats: nice update process --- diff --git a/cookbooks/stats/templates/default/awstats.cron.erb b/cookbooks/stats/templates/default/awstats.cron.erb index 5d081e619..e5bafafff 100644 --- a/cookbooks/stats/templates/default/awstats.cron.erb +++ b/cookbooks/stats/templates/default/awstats.cron.erb @@ -1,5 +1,5 @@ # 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 -%>