• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

How to run Awstats at lower priority?

S

sunmacet

Guest
I am looking way to run Awstats at lower priority.

I have added nice before /usr/share/awstats/awstats_updateall.pl ... in /etc/cron.daily/awstats but that doesn't seem to make any difference. Awstats (awstats.pl) is still runned at nice level 0 every day. So server is slowed down every day when Awstats is making stats.

So how to nice awstats to lower priority? Will I need to nice crond?

Thanks in advance!
 
/bin/nice -n 19 /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1

this runs it as the lowest priority

just set up a root cron in plesk and paste in the above command at the time you want to run stats.

Cheers!
 
/bin/nice -n 19 /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1

this runs it as the lowest priority

just set up a root cron in plesk and paste in the above command at the time you want to run stats.

Cheers!

Works like a charm!

Thank you!
 
Can't the awstats cron itself be modified, as in

Code:
/bin/nice -n 19 /usr/share/awstats/awstats_updateall.pl now -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -config
dir=/etc/awstats >/dev/null 2>&1

exit 0

This cron is called daily by /usr/local/psa/admin/sbin/statistics isn't it?
 
Back
Top