]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virinitctl: Expose fifo paths and allow caller to chose one
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 25 Jan 2019 11:37:53 +0000 (12:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Feb 2019 10:24:09 +0000 (11:24 +0100)
commit64eca3d5e30030147383bc63eba77e723563d4e2
treea30928e3bda53db1a43b202490cc16241e34385b
parent16c123679c4b2f9eff8179ee9fc9f8ec07d7b2f8
virinitctl: Expose fifo paths and allow caller to chose one

So far the virInitctlSetRunLevel() is fully automatic. It finds
the correct fifo to use to talk to the init and it will set the
desired runlevel. Well, callers (so far there is just one) will
need to inspect the fifo a bit just before the runlevel is set.
Therefore, expose the internal list of fifos and also allow
caller to explicitly use one.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/libvirt_private.syms
src/lxc/lxc_driver.c
src/util/virinitctl.c
src/util/virinitctl.h