I have a Jboss service in Windows server 2003. Is there a way to schedule the service to restart automatically on a daily basis?
Open Task Scheduler (Start > in search type Task Scheduler and select when found). Once Task Scheduler opens, in the right column window click on Create Task... In the General tab, type a name for the service. Enable the "Run whether user is logged on or not" and "Run with highest privileges".
Put the following commands in a batch or cmd file and use windows scheduler to trigger it at desired schedule.
net stop <service_name>
net start <service_name>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With