]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Check if systemd is running before creating machines
authorJán Tomko <jtomko@redhat.com>
Thu, 27 Feb 2014 20:21:57 +0000 (21:21 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 4 Mar 2014 08:14:52 +0000 (09:14 +0100)
commit12ee0b98d3ddcb2c71cdb2352512153791ebcb7e
treed4e3bfa17e4a0c15936b5e990f8a46740d66c0b9
parent65a4cb03c72d30ee8fd9494e18f112b394318d48
Check if systemd is running before creating machines

If systemd is installed, but is not the init system,
systemd-machined fails with an unhelpful error message:
Launch helper exited with unknown return code 1

Currently we only check if the "machine1" service is
available (in ListActivatableNames).
Also check if "systemd1" service is registered with DBus
(ListNames).

This fixes https://bugs.gentoo.org/show_bug.cgi?id=493246#c22
src/util/virdbus.c
src/util/virdbus.h
src/util/virsystemd.c
tests/virsystemdmock.c
tests/virsystemdtest.c