]> git.proxmox.com Git - pve-cluster.git/commit
pmxcfs: only exit parent when successfully started
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 2 May 2018 08:59:53 +0000 (10:59 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 2 May 2018 12:33:49 +0000 (14:33 +0200)
commit2af0d8881b3005de66887bedebc2e992f2338e91
treeb376bf44db220a8b672bd7fe8522675b5e3a5d85
parent3209f24c459f6d44b722530a306d16c79cb54914
pmxcfs: only exit parent when successfully started

since systemd depends that parent exits only
when the service is actually started, we need to wait for the
child to get to the point where it starts the fuse loop
and signal the parent to now exit and write the pid file

without this, we had an issue, where the
ExecStartPost hook (which runs pvecm updatecerts) did not run reliably,
but which is necessary to setup the nodes/ dir in /etc/pve
and generating the ssl certificates

this could also affect every service which has an
After=pve-cluster

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 3db2f0de7d7f314d16af8fff080de07d3447b169)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
data/src/pmxcfs.c