]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: teach run script how to temporarily stop systemd units
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 18 Mar 2021 18:22:32 +0000 (18:22 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 1 Apr 2021 10:33:36 +0000 (11:33 +0100)
commitf0bdd22aada78c4c7a0f386d3bbb04647e8b2266
tree982117a55a49392eb84e83352adfd9415c94dc38
parentd9dd94711d2c024760a7c1b98cecea5a63a79226
build: teach run script how to temporarily stop systemd units

When testing locally built daemons on a systemd host there can be quite
a few systemd units that need temporarily stopping, and ideally
restarting after the test is complete. This becomes a massive burden
when modular daemons are running and you want to test libvirtd, as a
huge number of units need stopping.

The run script can facilitate this usage by looking at what units are
running and automatically stopping any that are known to conflict with
the daemon that is about to be run. This is only done when running as
root, since non-root libvirtd does not (currently) use systemd.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
run.in