tree: 86f4df4e0285317f27ad7f0ec61d190da0c6585c [path history] [tgz]
  2. hello.service
  3. hello.socket
  4. httpserver.go

socket activated http server

This is a simple example of using socket activation with systemd to serve a simple HTTP server on

To try it out go get the httpserver and run it under the systemd-activate helper

export GOPATH="$PWD"
go get
/usr/lib/systemd/systemd-activate -l ./bin/httpserver

Then curl the URL and you will notice that it starts up:

hello socket activated world!