PDA

View Full Version : [Investigated] Quota resets twice


webManx
11-01-2005, 09:14 PM
On the 1st of each month, at 00:00 (e.g. 1 min earlier would be Oct 31st, 23:59), the quota system seems to be working properly. 24 hours later the quota gets reset again. Why does it reset twice?

Config:


[Reset]
WeeklyReset = Monday
MonthlyReset = 1st

[Scheduler]
###
# Scheduler
#
# Event = <minutes> <hours> <day of month> <day of week> Command
#
# Internal Commands:
#
# &Reset : Resets upload/download counters
# &Service_Update : Reloads devices and Restarts services, if bind ip of service has changed
Reset = 0 0 * * &Reset
Service_Update = 10,30,50 * * * &Service_Update
Day_Stats = 0 0 * * EXEC ..\scripts\ioBanana\ioBanana.exe daystats


If anyone could post an example (relevant parts) on how I should config Windrop (eggdrop.conf), ioFTPD (ioFTPD.ini), ioBanana (ioBanana.tcl) and how my windows clock should be set, that would be great!

ioBanana v20
ioFTPD 5.8.5r
WindropSSL 1.6.15

Yes, I know there is a new version of ioBanana, and I do plan to install a testversion ASAP but until then I want it to work with this one.

Looking forward to some good answers,

webManx :)

Harm
11-05-2005, 01:14 PM
That's a good question. Could you explain what makes you think it's resetted and what stats you've used to check that ?

webManx
11-06-2005, 08:04 AM
Actually I forgot to check the stats before and after the quota was resetted the second time (i.e. site stats monthup) so now theres no way to know if io did actually reset twice, or if the problems comes from any of the scripts. Since MonthlyReset is set to 1st, io should only reset once. :confused:

Perhaps there is something wrong in this switch block?

"quota123" {
set user [lindex $args 1]
set status [catch {set ee [::ftp::Quote $ioBvar(ftp) SITE BSTATS MONTHUP USER $user 1 "\"$ioBvar(sections)\""]} result]
etc.

I feel im just guessing here :p

Harm
11-08-2005, 04:30 PM
Not that I can remember but ioBanana v20 is getting old nowadays. Have you checked if it happens with ioB2 release 1 ?

webManx
11-08-2005, 05:21 PM
I will have ioB2 ready for next month. Thanks.