Skip to content
Commit a1def556 authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

implement zero downtime restarts & let systemd manage the socket

socket is now managed by systemd and passed to the server, the server
then takes over. on receiving INT, TERM or QUIT the server tries to finish
all pending calls and then detaches from the socket again, so it gets
traffic queued, and quits.
if/when traffic is queued systemd will (re)start the service to begin
the dance from the top

the server no longer has builtin listening capabilities. it must always
be started through the service or manually via systemd-socket-activate

code cheekily borrowed from my geoip service
parent e217f1ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment