We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Hard Limits
-
- Posts: 28
- Joined: Wed Aug 20, 2014 9:53 pm
Hard Limits
I host quite a few clients with Vesta, and this drives me INSANE.
I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
Re: Hard Limits
I have made a simple script if you would like to try it.rocky123xo wrote:I host quite a few clients with Vesta, and this drives me INSANE.
I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
Code: Select all
curl -o userdiskband.zip https://dl.sizzlinhost.com/userdiskband.zip
unzip -o userdiskband.zip -d /usr/local/vesta
rm -rf userdiskband.zip
chmod 755 $VESTA/bin/v-check-disk-band
Every Minute
Code: Select all
v-add-cron-job "admin" "*" "*" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-disk-band"
Every Day at Midnight
Code: Select all
v-add-cron-job "admin" "00" "00" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-disk-band"
Last edited by joem on Mon Mar 06, 2017 6:16 am, edited 1 time in total.
Re: Hard Limits
The link is broken ..joem wrote:I have made a simple script if you would like to try it.rocky123xo wrote:I host quite a few clients with Vesta, and this drives me INSANE.
I want AUTOMATIC suspensions of user accounts who go over their disk or bandwidth limits, with specific webpages for each.
Suggesting that I do it manually is just stupid. I'm not going to sift through 50 users every single day and manually suspend those who are over their limits. It should be automatic.
Code: Select all
curl -o userdiskband.zip http://dl.cdnmall.com/?id=userdiskband.zip unzip -o userdiskband.zip -d /usr/local/vesta rm -rf userdiskband.zip chmod 755 $VESTA/bin/v-check-user-disk-band
Every MinuteCode: Select all
v-add-cron-job "admin" "*" "*" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"
Every Day at MidnightCode: Select all
v-add-cron-job "admin" "00" "00" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"
Re: Hard Limits
@joem The link is broken ?
Can't download the zip file from http://dl.cdnmall.com/?id=userdiskband.zip
Can't download the zip file from http://dl.cdnmall.com/?id=userdiskband.zip
Re: Hard Limits
PM to joem, it's just old link and maybe moved allready.schiwe wrote:@joem The link is broken ?
Re: Hard Limits
Link has been updated