I created two Windows services A and B, and would like to add dependency between them so that I can:
Start service A (service B starts automatically)
Stop service A (service B stops automatically)
However, the command sc config ServiceA depend= ServiceB
only works for:
Start service A (service B starts automatically)
Stop service B (service A stops automatically)
Is there any way to make service B stop automatically when I stop service A?