I have a A.conf init file in ubuntu 14.04, where it depends on B as follows :
start on stopped B
i.e. A should start after another service B has stopped. Can anyone please let me know what is the equivalent of this in systemd ?
I have a A.conf init file in ubuntu 14.04, where it depends on B as follows :
start on stopped B
i.e. A should start after another service B has stopped. Can anyone please let me know what is the equivalent of this in systemd ?
I'm guessing service B in this example is a script that runs once, not a long-running service? If so, you can specify B as a "oneshot" type service, and just configure A to be After=B
.
If you're trying to get A to come up if B fails, you can directly specify OnFailure=A
in B.