]> git.proxmox.com Git - proxmox-backup.git/commit - proxmox-rest-server/src/daemon.rs
use double-fork for reload
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 Apr 2019 11:00:02 +0000 (11:00 +0000)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 25 Apr 2019 11:02:12 +0000 (11:02 +0000)
commit5e5eed5c3b07e44ebf05930add5d603af7cc6eb7
tree9f819b01a755ead79106c7fba077fa8ad7a19a08
parentefd1536eb763e39a467469f530b91146bec707d9
use double-fork for reload

To ensure the new process' parent is pid 1, so systemd won't
complain about supervising a process it does not own.

Fixes the following log spam on reloads:
Apr 25 10:50:54 deb-dev systemd[1]: proxmox-backup.service: Supervising process 1625 which is not our child. We'll most likely not notice when it exits.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/daemon.rs