I’m looking for functionality, which could be prevent call one service from another when called service is running.
Now I have situation: service A is running, service B can call service A even when service A is running.
I need a situation, when service A cannot be running from service B, when service A is running.
How can I realize such functionality?