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
cpaelzer / README-python-service-on-systemd-activated-socket.md
Created Oct 15, 2018
Debug for hardening systemd socket activation on failing services
View README-python-service-on-systemd-activated-socket.md

README

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/serve.py.

@cpaelzer
cpaelzer / README-python-service-on-systemd-activated-socket.md An example network service with systemd-activated socket in Python. #systemd #python #socket #socket-activation
View README-python-service-on-systemd-activated-socket.md

README

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/serve.py.

You can’t perform that action at this time.