Can the startup order for windows services be configured? If so, where?
Windows Server 2003 MySQL 5.x
Hi Guys,
I have a service that requires mysql to be running when starting up. I'd like ensure that mysql itself starts well before other windows services during reboots. Is there a way I can easily set this up?
Ideally, I'd like some way within windows to establish start up order or implement a delay mechanism for other third-party services. I've seen other methods implement a sleep timer for the services but I'm not too comfortable with this...
Any suggestions?
Solution 1:
In Windows 2003, service dependency order is your only mechanism for changing the order that Service Control Manager starts services w/o writing code.
You should identify the specific services that you want to start after MySQL and add depedency entries such that MySQL is started first. (Whether or not you can actually get what you want will depend on exactly which services you're trying to start MySQL before.)
Solution 2:
Not easily like Unix allows us to do, but you have make a service dependant on another service, and it wont start till after that service starts. If you want the service to start right at the bottom of the queue, make it dependant on the login service or the DHCP service if you have it installed. Netlogon is one of the last to start because of the need for so many other services and will ensure your process starts very late into the boot cycle.