]> git.proxmox.com Git - pve-cluster.git/commit
pmxcfs: only exit parent when successfully started
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 12 Apr 2018 12:38:15 +0000 (14:38 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 13 Apr 2018 06:37:57 +0000 (08:37 +0200)
commit3db2f0de7d7f314d16af8fff080de07d3447b169
tree34f202638c2ab3c4586095e2f060d89d6e0ec0fb
parent2ace9bc7e44972f659c8497787e20bc2962cc137
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>
data/src/pmxcfs.c