What is the purpose of this change? What does it change?
This change allows rest-server to be run on demand by systemd (socket activation). The rationale for supporting both is as follows:
On demand running with a listening socket opened externally is a good idea because then rest-server does not have to have the privileges to listen on a port.
My first choice for that would be systemd (so the process can even be restricted further), but it is not available for non-Linux systems
Was the change discussed in an issue or in the forum before?
What is the purpose of this change? What does it change?
This change allows
rest-server
to be run on demand by systemd (socket activation). The rationale for supporting both is as follows:rest-server
does not have to have the privileges to listen on a port.Was the change discussed in an issue or in the forum before?
Closes #126 Supersedes #127
Checklist
changelog/unreleased/
that describes the changes for our users (template here)gofmt
on the code in all commits