]> WPIA git - gigi.git/commit
Support socket activation
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Mon, 29 Aug 2016 12:10:09 +0000 (14:10 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Mon, 29 Aug 2016 22:16:00 +0000 (00:16 +0200)
commit234dae50395faa589810f0b1d8d6b7a0fba7393f
treef3ae7d8808214ed3e75ca4f10386aa723dca6d66
parent49b85ef92acaa7b62acdfd89aac04680f7c25154
Support socket activation

There are now separate properties for the port that is "displayed" (e.g.
when issuing redirects) and the port that is actually bound. The bind
ports may also be set to "stdin", in which case System.inheritedChannel
is used (expects a socket as file descriptor 0). This allows gigi to
inherit a socket from the system manager ((x)inetd, systemd), which in
turn allows one to run gigi as any user on root ports (e.g. port 80).

Change-Id: I343e1e25daae94aae67db1dd6f25fcfb6241d0fc
src/org/cacert/gigi/Launcher.java
src/org/cacert/gigi/util/ServerConstants.java