• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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