53e8b80ed3
This patch add a way to choose container engine inside tool and test scripts. This is in preparation for Podman introduction but still leaves Docker as default container engine. Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com> Change-Id: I395d2bdb0dfb4b325b6ad197c8893c8a0f768324
20 lines
574 B
Desktop File
20 lines
574 B
Desktop File
[Unit]
|
|
Description=Manage libvirt guests in kolla safely
|
|
After=docker.service
|
|
After=systemd-machined.service
|
|
After=virt-guest-shutdown.target
|
|
Requires=docker.service
|
|
Requires=virt-guest-shutdown.target
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
TimeoutStopSec=610
|
|
ExecStart=-/usr/bin/docker exec nova_libvirt /bin/rm -f /var/lib/libvirt/libvirt-guests
|
|
ExecStart=-/usr/bin/docker start nova_compute
|
|
ExecStop=/usr/bin/docker stop nova_compute
|
|
ExecStop=/usr/bin/docker exec nova_libvirt /bin/sh -x /usr/libexec/libvirt-guests.sh shutdown
|