Need help regarding the scheduled stop/start of Windows services
Posted on 2004-09-01
Thanks in advance for any assistance.
I need to create a job that will stop and restart a set (3) of Windows services. Situation: Running a BI Tool (BusObj) in production environment. The software polls a database repository every couple of minutes in order to create trace logs. Our DBA Group stops the database at night in order to create backups. When this happens, my software breaks because of the connectivity problem. So, after the nightly backup of the db, I need to stop and restart my software. I hope that's clear. The server is running Win 2k Server. There are 3 services that need to be stopped/restarted. Two problems:
I don't know how to write this cron job (I think that's what i need).
The glitch: After stopping the services, I need to wait until they are completely stopped (about 1.5 minutes) before starting them again.
Any assistance is greatly appreciated. I'm coming into a server down situation every morning.