From 8a8d55f2c104cf99efe5f244fc4857a15e9f60de Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Sun, 16 Mar 2014 22:33:35 -0400 Subject: journal-remote: implement inheriting http(s) sockets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now --listen-http=-3 --listen-https=-4 can be used to spawn a µhttpd server on those two ports, in http and https modes respectively. As before, --listen-http=3 --listen-https=4 will launch µhttpd servers on ports 3 and 4. --- man/systemd-journal-remote.xml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'man/systemd-journal-remote.xml') diff --git a/man/systemd-journal-remote.xml b/man/systemd-journal-remote.xml index ef123ce481..40bef05a13 100644 --- a/man/systemd-journal-remote.xml +++ b/man/systemd-journal-remote.xml @@ -143,14 +143,19 @@ along with systemd; If not, see . - ADDRESS must be an + ADDRESS must be + either a negative integer, in which case it will be + interpreted as the (negated) file descriptor number, or an address suitable for (c.f. systemd.socket5). - HTTP or HTTPS server will be spawned on this port, - respectively, for the first and second options. Currenntly - Only POST requests to /upload with - Content-Type: application/vnd.fdo.journal - are supported. + In the first case, matching file descriptor must be inherited + through + $LISTEN_FDS/$LISTEN_PID. + In the second case, an HTTP or HTTPS server will be spawned on + this port, respectively for and + . Currenntly Only POST requests + to /upload with Content-Type: + application/vnd.fdo.journal are supported. @@ -160,10 +165,15 @@ along with systemd; If not, see . systemd-journal-remote supports the $LISTEN_FDS/$LISTEN_PID - protocol. Open sockets inherited through socket - activation behave like those opened with - described above. - + protocol. Open sockets inherited through socket activation + behave like those opened with + described above, unless they are specified as an argument in + + or + + above. In this later case, an HTTP or HTTPS server will be + spawned using this descriptor and connections must be made + over the HTTP protocol. -- cgit v1.2.3-54-g00ecf