I have windows services that use EasyNetQ and RabbitMQ. A service is usually started from the service control manager. However, I sometimes saw that when rebooting, the service does not start with an error in the service event log:
A timeout was reached (30000 milliseconds) The <serviceName> service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.
I tried auto-delay service, and that didn't help.
In addition, I was thinking about setting up the recovery mechanism so that if it does not start, it restarts from the first and second and subsequent failures. Not sure if this will work.
So my questions are: how can I determine what a dependency is, which is why my service does not start sometimes?
c # rabbitmq windows-services easynetq
JD.
source share