Page 1 of 1

How to set expiration date for the account?

Posted: Tue Aug 21, 2018 7:11 am
by emammadov
Hello,

I am using VestaCP, I like it. I have several accounts for customers. I want to set a expiration date for them, so that it will be suspended automatically when that date comes. Is it possible?

Re: How to set expiration date for the account?

Posted: Tue Aug 21, 2018 12:04 pm
by ScIT
At the moment - no, this is not possible. But it may be a feature request, you can post it here: https://bugs.vestacp.com

Re: How to set expiration date for the account?

Posted: Tue Aug 21, 2018 12:13 pm
by emammadov
ScIT wrote:
Tue Aug 21, 2018 12:04 pm
At the moment - no, this is not possible. But it may be a feature request, you can post it here: https://bugs.vestacp.com
To which section should I write? Problems | Enhancement | Ideas ?

Re: How to set expiration date for the account?

Posted: Tue Aug 21, 2018 12:35 pm
by ScIT
Ideas for example or Enhancement - doesnt matter :)

Re: How to set expiration date for the account?

Posted: Wed Aug 22, 2018 4:33 am
by emammadov
It would be nice to have this option available in the next update. Could you please let me know how I can do this with cron job until the next update?

Re: How to set expiration date for the account?

Posted: Wed Aug 22, 2018 6:08 am
by ScIT
emammadov wrote:
Wed Aug 22, 2018 4:33 am
It would be nice to have this option available in the next update. Could you please let me know how I can do this with cron job until the next update?
I'm not sure if this will be implemented as a feature. It sounds more like a job for a management/billing software like whmcs. You can create a own php or shell script and use vestacp api https://vestacp.com/docs/api/ and the command v-suspend-user.

Re: How to set expiration date for the account?

Posted: Fri Aug 31, 2018 7:38 am
by xorro
No this is not a billing/managment software solution. This solution is available in many other control panels well hopefully it will be implemented sooner or later. That is what i hope for.

Edit: have you tried yum-cron?