Windows Services not starting

I want to make sure I understand the behavior of the Deploy Windows Service project step.

Is this correct?

  1. The service will be shut down first
  2. The new code is deployed
  3. The service startup mode is set to what is set in the step
  4. Assuming the start mode is automatic, the service will then restart.

This has been the assumption we’ve been working under, but recently it seems that the services are not restarting after the deploy.

Hi Rich,

Thanks for getting in touch! I’m sorry to hear you’re hitting this unexpected behavior with your services not restarting. Your assumption looks correct, and you can also refer directly to the Calamari source code.

This is where we stop the service:

This is where we restart the service:

If you’re still hitting some unexpected behavior on this step, could you attach a copy of your verbose task log? That should give us some more context to hopefully narrow down what’s going on. Feel free to mark this thread as private, or email us at support@octopus.com if sending the log. :slight_smile:

I look forward to hearing back!

Best regards,

Kenny