]> xenbits.xensource.com Git - libvirt.git/commit
libvirtd: systemd: add special target for system shutdown
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 14 Oct 2016 07:13:48 +0000 (10:13 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Wed, 23 Nov 2016 08:13:53 +0000 (11:13 +0300)
commit01079727fe29dfeafac751a07e564e0d6bb53389
tree0a86e378e6aadac778b776254045e41010a77453
parent29dc9a52d78b09cafbb3b2cd20f13d38fb258181
libvirtd: systemd: add special target for system shutdown

It is already discussed in "[RFC] daemon: remove hardcode dep on libvirt-guests" [1].

Mgmt can use means to save/restore domains on system shutdown/boot other than
libvirt-guests.service. Thus we need to specify appropriate ordering dependency between
libvirtd, domains and save/restore service. This patch takes approach suggested
in RFC and introduces a systemd target, so that ordering can be built next way:

libvirtd -> domain -> virt-guest-shutdown.target -> save-restore.service.

This way domains are decoupled from specific shutdown service via intermediate
target.

[1] https://www.redhat.com/archives/libvir-list/2016-September/msg01353.html
daemon/Makefile.am
daemon/virt-guest-shutdown.target [new file with mode: 0644]
libvirt.spec.in
src/util/virsystemd.c
tools/libvirt-guests.service.in