awstats.pl cronjob spawns too many instances resulting in very high load average
Bug #248213 reported by
Steven Wagner
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
awstats (Debian) |
Fix Released
|
Unknown
|
|||
awstats (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: awstats
cronjob located in /etc/cron.d/awstats
0,10,20,30,40,50 * * * * www-data /usr/lib/
If not completing within the 10 minute interval, multiple instances will be spawned until the machine comes to a halt. A check should be in place to prohibit additional instances from running if the prior instances is still running.
Changed in awstats (Ubuntu): | |
importance: | Undecided → Low |
Changed in awstats (Debian): | |
status: | Unknown → New |
Changed in awstats (Debian): | |
status: | New → Fix Released |
Changed in awstats (Ubuntu): | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
Package: awstats
Version: 6.5+dfsg-1
Followup-For: Bug #224506
Dear all.
I wrote myself a awstats cron wrapper which should solve at least three
bugreports on awstats :-)
It does:
* locking: no more than one instance -- one configuration -- will run
* config checking: check required config file (and included confs)
* check that required logfile is available
* should work out of the box when run from /etc/cron.d/awstats
* it also makes awstats more nice :-)
If it's of any use, please include it into the awstats package and run
from cron. Questions, comments, suggestions and complains are welcomed
as always.
All the best,
Arne
-- System Information: en_US.UTF- 8 (charmap=UTF-8)
Debian Release: 4.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-maxipes-fik
Locale: LANG=en_US.UTF-8, LC_CTYPE=