]> git.proxmox.com Git - pve-common.git/commit
systemd: add wait_for_unit_removed
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Jun 2019 07:21:23 +0000 (09:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 19 Jun 2019 08:11:03 +0000 (10:11 +0200)
commitb8d15bfd69ea6aa3ddcce9ffb496e3d52a509f31
treef9eccc94ea2a8d8616932fac5f023bc26f57d4d0
parent2ccac1a40f51c109848a875d48edecb502dbf830
systemd: add wait_for_unit_removed

And split out the common code into a systemd_call() sub.

This connects to the systemd bus and waits for a UnitRemoved
event to occur for the specified unit, with an optional
timeout.

We'll use this in qemu-server to wait for a VM's scope to
disappear completely before trying to start a VM's scope
anew.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/Systemd.pm