[Feature Request] Support systemd socket activation
I'd like to run waypipe within my local user session at login using systemd. The current code creates the socket and binds it to the configured file here. It'd be great if waypipe had an option to check (sd_listen_fds
)[https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html] for an already configured socket descriptor that is managed by systemd.socket activation. This would make waypipe only run when a remote server is actually connected.
For now, I've worked around this having it always run locally upon login and remotely upon login, using my ssh_config
to configure the RemoteForward. as documented in this gist.