Quotas and shutdown
Posted: Thu Apr 23, 2009 10:56 am
Hi,
I have just installed Gargoyle on a wrt54gl and I am setting up quotas to restrict the daily usage of machines on my network. I noticed that usage data is stored in /usr/data/restricter. This data appears to be updated only when settings are changed. If the power is switched off to the router does any accumulated usage get lost?
From a quick look at the source code restricter.c my understanding is that that the data is only updated once a day and that a variable quota_backup_interval can be set to have it backed up more often. Is this correct?
Also is there a correct way to shutdown the router so that things such as quotas and bandwidth data are saved and not lost?
Thanks
Peter
I have just installed Gargoyle on a wrt54gl and I am setting up quotas to restrict the daily usage of machines on my network. I noticed that usage data is stored in /usr/data/restricter. This data appears to be updated only when settings are changed. If the power is switched off to the router does any accumulated usage get lost?
From a quick look at the source code restricter.c my understanding is that that the data is only updated once a day and that a variable quota_backup_interval can be set to have it backed up more often. Is this correct?
Also is there a correct way to shutdown the router so that things such as quotas and bandwidth data are saved and not lost?
Thanks
Peter