Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Ehrhardt cpaelzer

  • Canonical LTD
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.