Page 1 of 1
Hard Limits
Posted: Sat Jul 25, 2015 12:58 am
by rocky123xo
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.
Re: Hard Limits
Posted: Sat Jul 25, 2015 10:24 am
by joem
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.
I have made a simple script if you would like to try it.
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"
Re: Hard Limits
Posted: Sat Jan 07, 2017 9:13 am
by schiwe
joem wrote: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.
I have made a simple script if you would like to try it.
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 Minute
Code: Select all
v-add-cron-job "admin" "*" "*" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"
Every Day at Midnight
Code: Select all
v-add-cron-job "admin" "00" "00" "*" "*" "*" "sudo /usr/local/vesta/bin/v-check-user-disk-band"
The link is broken ..
Re: Hard Limits
Posted: Wed Jan 11, 2017 5:14 pm
by schiwe
@joem The link is broken ?
Can't download the zip file from
http://dl.cdnmall.com/?id=userdiskband.zip
Re: Hard Limits
Posted: Fri Mar 03, 2017 5:06 am
by skurudo
schiwe wrote:@joem The link is broken ?
PM to
joem, it's just old link and maybe moved allready.
Re: Hard Limits
Posted: Mon Mar 06, 2017 6:16 am
by joem
Link has been updated
Re: Hard Limits
Posted: Mon Mar 06, 2017 11:46 am
by skurudo