Forum Discussion
Corey_Webb_9791
Nimbostratus
Apr 14, 2008How do I schedule a restart.
Can someone tell me how I can schedule a restart so I do not have to get up early or stay up late?
1 Reply
- JRahm
Admin
Do you mean a reload, a restart of a particular service, or a restart of all the services? Assuming you want to restart all services at 4am, you could add a file to the /etc/cron.daily directory with these contents:
!/bin/bash
/usr/bin/bigstart restart
If you want to restart a specific service, like tmm, you could use these contents instead:
!/bin/bash
/usr/bin/bigstart restart tmm
Finally, if you want a different time, you can edit /etc/crontab to change the cron.daily time (careful here, there are other processes that also kick off with cron.daily, so make sure this is what you want) or you can create a file in another directory independent of the /etc/cron.* directories and add an entry to /etc/crontab at the time of your choosing.
Google cron & crontab for more details.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects