I am using Octopus to deploy some Topshelf services that are built by TeamCity. The Octopus deployment runs a powershell script that installs/reinstalls the service from a nuget package and starts it.
My issue is that it is possible for these services to be in the middle of critical activities that should not be interrupted by a new deployment. I would want to wait until the service is finished with these things to deploy my new version. I've not been able to find a nice solution for this. What would be the typical way to handle this situation? Currently my octopus tentacles are set up in "listening" mode.