Systemd socket activation
Systemd socket activation

This tiny patch implements systemd's socket activation mechanism[0] for
cherrypy servers, it's based on work sponsored by Endless Computers[1] to
package kalite[2] as a flatpak[3].

Socket Activation allows to setup a system so that systemd will sit on a
port and start services 'on demand' (a little bit like inetd and xinetd
used to do). This patch makes that mechanism work for any cherrypy
service without modification.

[0] http://0pointer.de/blog/projects/socket-activation.html
[1] https://endlessm.com
[2] https://learningequality.org/ka-lite/
[3] https://flatpak.org

https://phabricator.endlessm.com/T4489

Signed-off-by: Niv Sardi <f614dcc26eff58137ed1b21c6509143c66dce713@evilgiggle.com>

Safihre/cherrypy,cherrypy/cherrypy,Safihre/cherrypy,cherrypy/cheroot,cherrypy/cherrypy