]> git.proxmox.com Git - proxmox-backup.git/commit
rest-server/daemon: use sd_notify_barrier for service reloading
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 30 Sep 2021 07:18:58 +0000 (09:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 2 Oct 2021 09:44:20 +0000 (11:44 +0200)
commit0a6df2098670d35d13d6087bd0503fe792c66228
treeedb33d55ec6087fe58adb8cd20e40e6249d540db
parent6680878b5c236869c332e297e2756b27138a404a
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>
debian/control
proxmox-rest-server/examples/minimal-rest-server.rs
proxmox-rest-server/src/daemon.rs
src/bin/proxmox-backup-api.rs
src/bin/proxmox-backup-proxy.rs