OxnardMontalvo
Verified User
Ok, I wrote my ShoutcastbasndwithCounter script and it's running fine but in looking at it and what it's doing, it's actually just accumulating the bandwidth for the account holder, not the domain. (bandwidth.tally is in /usr/local/directadmin/data/users/USERNAME. For my current situation, that's fine but I'd rather accumulate bandwidth on a domain by domain basis so if a domain goes over it's allotment, DA can suspend that domain, not the reseller.
All that to say this, where can I find the equivalent of bandwidth.tally for a domain? I found DOMAINSNAME.usage but it's not the same as bandwidth.tally. bandwidth.tally is easy to work with because you just append to the file. Is there some equivalent mechanism for each domain? If not, how is the number in DOMAINNAME.usage calculated?
=C=
All that to say this, where can I find the equivalent of bandwidth.tally for a domain? I found DOMAINSNAME.usage but it's not the same as bandwidth.tally. bandwidth.tally is easy to work with because you just append to the file. Is there some equivalent mechanism for each domain? If not, how is the number in DOMAINNAME.usage calculated?
=C=
Last edited: