• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

possible to have domain enabled at specific time?

D

dennysp

Guest
Hi,
I want to kno if it is possible to have a specific domain get disabled and reenabled at certain times of the day, example, domain.com will become available at 6:00am and at 12:00am become disabled, is that possible? I know it would require a cron job, but I'm not sure what is the command.

Thanks in advance
-d
 
If the actions needs to be ran on daily basis then you should use "cron", if not you should use "at" command along with creation utilities.

For help use:

man 5 crontab
man crontab
man at

Good luck.
 
Well, I know I have to use cron, but I'm not sure what is the plesk command to run to enable/disable the domain.
 
/usr/local/psa/bin/domain.sh --off domain.com
/usr/local/psa/bin/domain.sh --on domain.com

Good luck.
 
Back
Top