From f98d656899137e93216190bcc6613e15607c987c Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sun, 17 Feb 2019 18:01:41 +0000 Subject: [PATCH] stats: nice update process --- cookbooks/stats/templates/default/awstats.cron.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%> -- 2.39.5