• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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