X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd-socket-proxyd.xml;h=4eb13e4d2526577ac2547ebd689d2fe4359e99eb;hp=90b3b1c3a4f087a2ed36049640c1a3af72e92d93;hb=8cf030b349cbcb0901d880c9165d785dfc9cd569;hpb=96c374d0a536286e18cad64d1b5ebb8f07c90334 diff --git a/man/systemd-socket-proxyd.xml b/man/systemd-socket-proxyd.xml index 90b3b1c3a..4eb13e4d2 100644 --- a/man/systemd-socket-proxyd.xml +++ b/man/systemd-socket-proxyd.xml @@ -39,19 +39,17 @@ systemd-socket-proxyd - Inherit a socket. Bidirectionally - proxy. + Bidirectionally proxy local sockets to another (possibly remote) socket. systemd-socket-proxyd - OPTIONS - HOSTNAME-OR-IP - PORT-OR-SERVICE + OPTIONS + HOST:PORT systemd-socket-proxyd - OPTIONS + OPTIONS UNIX-DOMAIN-SOCKET-PATH @@ -59,15 +57,22 @@ Description - systemd-socket-proxyd provides a proxy - to socket-activate services that do not yet support - native socket activation. On behalf of the daemon, - the proxy inherits the socket from systemd, accepts - each client connection, opens a connection to the server - for each client, and then bidirectionally forwards - data between the two. + systemd-socket-proxyd is a generic + socket-activated network socket forwarder proxy daemon + for IPV4, IPv6 and UNIX stream sockets. It may be used + to bi-directionally forward traffic from a local listening socket to a + local or remote destination socket. + + One use of this tool is to provide + socket activation support for services that do not + natively support socket activation. On behalf of the + service to activate, the proxy inherits the socket + from systemd, accepts each client connection, opens a + connection to a configured server for each client, and + then bidirectionally forwards data between the + two. This utility's behavior is similar to - socat1 . + socat1. The main differences for systemd-socket-proxyd are support for socket activation with Accept=false and an event-driven @@ -93,24 +98,11 @@ string and exits. - - - - Skips verification of - the expected PID and file - descriptor numbers. Use if - invoked indirectly, for - example with a shell script - rather than with - - - - Exit status - On success 0 is returned, a non-zero failure + On success, 0 is returned, a non-zero failure code otherwise. @@ -126,7 +118,7 @@ ListenStream=80 [Install] -WantedBy=socket.target]]> +WantedBy=sockets.target]]> @@ -153,9 +145,8 @@ server { - @@ -177,7 +168,7 @@ $ curl http://localhost:80/]]> ListenStream=80 [Install] -WantedBy=socket.target]]> +WantedBy=sockets.target]]> @@ -186,7 +177,7 @@ WantedBy=socket.target]]> /etc/systemd/system/proxy-with-nginx.service +exec /usr/bin/systemd-socket-proxyd localhost 8080]]> @@ -221,9 +212,8 @@ server { - @@ -232,23 +222,11 @@ $ curl http://localhost:80/]]> See Also - - - systemd.service - 5 - , - - - systemd.socket - 5 - , - - systemctl - 1 - , - - socat - 1 - + systemd1, + systemd.socket5, + systemd.service5, + systemctl1, + socat1 +