I'm trying to write a systemd
service that depends on a remote systemd service. Is there any "standard" way of accomplishing something as weird as this? Use case for this is some legacy software that needs a remote endpoint to be ready at startup.
I know I could use something like wait-for-this in a service's
ExecStartPre that checks/waits until some specific remote TCP port is available (and possibly write a simple
.socket unit on the remote). But this seems like a bit of an overkill. Is there a method in systemd itself for communicating with another, remote systemd?