In this article
The service manual describes a reload signal, normally SIGHUP, sent to the main process. The service replies with RELOADING=1 together with MONOTONIC_USEC carrying the current monotonic timestamp in microseconds. After completing the reload it sends READY=1. ReloadSignal can change the triggering signal. The monotonic field synchronizes reload cycles; it is not a wall-clock date or a model-generation identifier. Use the installed version's supported protocol and signal-handler requirements.
Reloading a model server’s configuration is an asynchronous state transition unless the application makes completion observable. Type=notify-reload supplies a documented handshake for that transition. It lets the manager wait for a reload completion notification, but the application still decides when its replacement configuration is genuinely usable. A notification sent too early only makes the incorrect claim easier to observe.
The service-manager contract
The service manual describes a reload signal, normally SIGHUP, sent to the main process. The service replies with RELOADING=1 together with MONOTONIC_USEC carrying the current monotonic timestamp in microseconds. After completing the reload it sends READY=1. ReloadSignal can change the triggering signal. The monotonic field synchronizes reload cycles; it is not a wall-clock date or a model-generation identifier. Use the installed version’s supported protocol and signal-handler requirements.
Implementation details
Define the reload commit point before wiring notifications. Parsing a new file, constructing resources and switching requests to the new configuration are separate activities. Send completion only after the declared contract is satisfied, and expose a non-sensitive configuration generation through controlled diagnostics. Decide what happens to requests already using the old generation. A failed reload should preserve a truthful outcome; leaving the manager waiting indefinitely is not a substitute for a documented failure policy.
A constructed validation case
Create a test daemon with deliberately delayed configuration replacement. Record the reload signal, RELOADING notification, generation switch and READY notification. Compare a successful replacement with invalid configuration and a branch that incorrectly signals completion before switching. Issue synthetic probes tied to the test generation to distinguish manager completion from application behavior. Include another reload cycle after the first and verify timestamp construction uses the documented monotonic clock rather than a cached timestamp or converted calendar time.
Recovery limits
The handshake does not make arbitrary model hot swapping safe. Memory overlap, resource cleanup and request consistency remain implementation concerns. A successful READY notification cannot prove that every worker adopted the same generation. Validate the relevant worker population and retain failed reload outcomes. This mechanism gives the service manager a completion boundary; the application must supply the meaning of that boundary and enough evidence to test it without storing request payloads.
Primary references
systemd systemd.service documented interface; systemd sd_notify documented interface.
This is a proposed service-lifecycle validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the availability or correctness of an inference service.
Related reading
Startup, readiness and liveness for a slow-loading model server; Golden inference API fixtures: test the contract rather than prose.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.