Hey guys,
We have some circuit-breaker logic in a Windows Service we’re deploying with Octopus (the service completely stops when NServiceBus shuts down because of a loss of connectivity).
We’d like to configure the service to automatically restart (the outages are usually temporary, or occur overnight). I know this is possible via the sc.exe command using the “failure” option (https://technet.microsoft.com/en-us/library/cc742019(v=ws.11).aspx)
One of our devops guys is looking to put together a custom script to enable this, but I really like the convenience and clean interface of the existing Octopus feature (prevent everyone from having to dig through powershell scripts to edit builds!). Are there any plans to add a “Recovery” section to the feature?
Or does anyone know a simple method of enabling this, without completely replacing the feature in the step? I see there’s a section for passing arguments to the service executable, but not to sc.exe itself.
Thanks,
-Adam