Do not reset bandwidth on 1st of the month

vod

Verified User
Joined
Oct 25, 2005
Messages
129
Hi All,

After reading the post i realise that DA reset bandwidth on the 1st day of every month. Is there a way to change the reset date per user account/ domain basis?

We are going to provide hosting service and the bandwidth need to be reset every month on the anniversary date (start date) of the client account.

For example,
Client A sign up on 14th Oct 2005, Client A's bandwidth get reset on 14th Dec 2005.
Client B sign up on 25 Oct 2005, Client B's bandwidth get reset on 25 Nov 2005
and so on so forth.

If the above is not possible, any other workaround?

Thank you very much.

Regards,
Nigel
 
It is possible but it's a lot of work.
Basically you delete the reset cronjob that you currently have and replace it with jobs that will run everday of the month. Then you will need to manually manage the list of users that are reset each day.

I don't have a link to the original thread, but it's still somewhere floating around on these forums. It contains the commands that you will need to run.

The reset and tally both work in similar ways. You can find information looking for per user tally as well.
 
Last edited:
Hi JM,

I found an instruction here at DA knowledgebase.
http://help.directadmin.com/item.php?id=53

It seems just a few steps required. what dya think of the script? What do those script actually do? if i follow that instructions, does it mean every new user account i create will automatically has its own "username_cron" that will reset bandwidth at every anniversary date of that account?

thanks a lot
 
Back
Top