I need to increase a startup timeout for one of my windows services (startup=automatic) to be able to start it after a reboot. It starts normally if I start it manually or use startup=delayed
type, but I would like to keep it automatic
I can increase it by changing ServicesPipeTimeout
registry key, but that will increase timeout for all windows services, whereas I want to do it for only one specific service.
Another solution is to use RequestAdditionalTime
in my OnStartup
method I found it here
windows service startup timeout,
however again it does not suit me because it seems OnStart
does not even run at all, probably windows needs some time to load different dlls before starting the service and 30 seconds is just not enough after a PC reboot.
Is there another way to do it maybe setting some other registry key-values to increase timeout for only one service?