Login
You're viewing the techdon.dev public feed.
  • Nov 11, 2026, 6:51 PM
    retooted Zeeshan Ali Khan :rust: 🇺🇦

    The first release of zoter is out: restart systemd services without dropping their clients.

    The instance of a service that stops hands its state and the connections of its clients over to the next one, through the file descriptor store that systemd keeps for the service across its restarts. The clients notice nothing but a pause.

    What's in it:
    • `Store` hands a service over in the instance that stops, and takes the hand-over in the next one, however many clients there are.
    • Any protocol takes part through two traits, `Save` and `Restore`, which the hand-overs of its connections implement.
    • An item that doesn't fit the limits of systemd or of the next instance is left out alone, rather than failing the hand-over.
    • `Passed` and `Notifier` take what systemd passes a service and talk back to it, as sd_listen_fds(3) and sd_notify(3) do.
    • A fake service manager, behind the `testing` feature, tests restarts without systemd.
    • The API is synchronous, with no async runtime, and needs Linux and systemd 254 or later.

    zoter was taken out of busd, the pure-Rust D-Bus broker, so that any service can restart this way. zbus and zlink implement its traits for D-Bus and Varlink connections in their next releases.

    Release notes: github.com/z-galaxy/zoter/rele
    Docs: docs.rs/zoter
    Crate: crates.io/crates/zoter

    #rustlang #systemd #linux

    💬 0🔄 3⭐ 1