proxmox-backup/proxmox-rest-server
Dominik Csapak 0a6df20986 rest-server/daemon: use sd_notify_barrier for service reloading
until now, we manually polled the systemd service state during a reload
so that the sd_notify messages get processed in the correct order
(RELOAD(old) -> MAINPID(old) -> READY(new))

with systemd >= 246 there is now 'sd_notify_barrier' which
blocks until systemd processed all prior messages

with that change, the daemon does not need to know the service name anymore

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-10-02 11:44:20 +02:00
..
examples rest-server/daemon: use sd_notify_barrier for service reloading 2021-10-02 11:44:20 +02:00
src rest-server/daemon: use sd_notify_barrier for service reloading 2021-10-02 11:44:20 +02:00
Cargo.toml examples: add example for a simple rest server with a small api 2021-09-29 09:48:47 +02:00