[systemd-devel] Go socket activated http server example

Alex Polvi alex at polvi.net
Sat Jun 22 21:49:52 PDT 2013


Hi, I was tinkering with socket activation in go today, thought I'd
share the working example incase anyone else was interested.

  https://gist.github.com/polvi/b4c3aaa59c9b13e0b334

This was based on:

  https://gist.github.com/alberts/4640792

(thanks alberts)

Works like a charm! It also worked in a minimal nspawn container,
including when --private-networking was used. Pretty cool!

Thanks,

-Alex


More information about the systemd-devel mailing list