How do i create dependency between two Windows Services created by me but installed on separate machines. ServiceA is installed on SystemA and ServiceB is installed on SystemB.
I want to make sure that if ServiceA is running then only ServiceB should start.
I know its easy to do if they both are on same machine but since they are on different machines, i am kind of stuck here.
How about simply calling out to serviceB via TCP or Remoting or WCF? If the service does not respond, you end serviceA. And vice versa.
This method would work whether you are on the same machine or across the globe.