• 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!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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