-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd/inetd socket activation #126
Comments
FYI, |
Thanks for letting me know, systemd really has a solution for everything! |
I finally got to try the solution via pantalaimon-proxy.socket [Socket]
ListenStream=127.0.0.1:8009
[Install]
WantedBy=sockets.target pantalaimon-proxy.service [Unit]
Requires=pantalaimon.service pantalaimon-proxy.socket
After=pantalaimon.service pantalaimon-proxy.socket
[Service]
# wait 5 seconds to ensure pantalaimon.service is up and can accept connections
ExecStartPre=/usr/bin/sleep 5
ExecStart=/usr/lib/systemd/systemd-socket-proxyd --exit-idle-time=5m 127.0.0.1:8010 This allows pantalaimon to be started on demand. Furthermore, when extending pantalaimon by |
It would be cool if pantalaimon supported systemd or inetd socket activation, so that it can be started on demand, when a matrix client is trying to connect.
For this, pantalaimon would need to be able to accept sockets passed from systemd/inetd, either via systemd's native socket passing interface or via standard input/output (inetd).
See the second to last paragraph of this section: https://www.freedesktop.org/software/systemd/man/systemd.socket.html#Description
The text was updated successfully, but these errors were encountered: