Skip to content

Instantly share code, notes, and snippets.

Christian Ehrhardt cpaelzer

  • Canonical LTD
Block or report user

Report or block cpaelzer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cpaelzer / An example network service with systemd-activated socket in Python. #systemd #python #socket #socket-activation


The example below creates a Unix Socket server listening on a stream (i.e. SOCK_STREAM) socket. A similar approach can be followed to create a UDP server on a datagram (i.e. SOCK_DGRAM) socket. See man systemd.socket for details.

An example server

Create an simple echo server at /opt/foo/

You can’t perform that action at this time.