• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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