0

I'm building a docker container with a service X. I would like to restart service X programmatically from other micro-service in other container.

At the moment, we developed a small Flask app that is executed as entry-point and at the startup this app executes the service X and saves the PID. The, Flask exposes and endpoint and when this endpoint is called it executes kill command and starts again service X.

Is there any better way to accomplish this?

  • 1
    Please add more details about what you are trying to achieve. E.g. why do you need to restart something? – 030 May 18 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.