aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean McAvoy <seanmcavoy@gmail.com>2021-10-01 20:33:09 -0400
committerFrancesco Colista <fcolista@alpinelinux.org>2021-10-05 17:34:51 +0000
commit08e778842d51bf5eb37d5fdfa00dbf0b5ec84519 (patch)
tree9db2eafd8ffcab89401a961d513a793d3fc04d37
parente05faf293fd802c729d432906ffb5e8db77f3830 (diff)
downloadaports-08e778842d51bf5eb37d5fdfa00dbf0b5ec84519.tar.gz
aports-08e778842d51bf5eb37d5fdfa00dbf0b5ec84519.tar.bz2
aports-08e778842d51bf5eb37d5fdfa00dbf0b5ec84519.tar.xz
testing/lxd: update initd to ensure shutdown of instances
-rw-r--r--testing/lxd/APKBUILD4
-rw-r--r--testing/lxd/lxd.initd6
2 files changed, 8 insertions, 2 deletions
diff --git a/testing/lxd/APKBUILD b/testing/lxd/APKBUILD
index f7c699e326..fa989cb3cc 100644
--- a/testing/lxd/APKBUILD
+++ b/testing/lxd/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=lxd
pkgver=4.19
-pkgrel=0
+pkgrel=1
pkgdesc="a container hypervisor and a new user experience for LXC"
url="https://linuxcontainers.org/lxd/"
arch="all !mips !mips64"
@@ -135,5 +135,5 @@ scripts() {
sha512sums="
8569912999af71c92740c060f85ea2a37b1943e924ab4be62421c96cb1ee05a3eb2802f130fc11774cb036d8348260ca65d63b6da2ca3fe6f75a681a36d62dfd lxd-4.19.tar.gz
1bbb26a61b3812e6eb4c3cb7db6c2d9adb43195f96f317d6bba1ace6a97f1faed0677a12c3827002bc147edba9b355f0e7ead3960d254a131b25fb8c060ea8d0 lxd.confd
-eb16aaa1121dda7687dd40d017e127478a72ddbc16658c31631265f0e4f05b2256e858dde40f4af08f8889651fa1898c8a65aa6826a9a9542cb4ae1f4bbf76ca lxd.initd
+ebf9608ea3db25b456a557c81838c6a793adf5f490bd64e1f3dc6951bad619188cb0170f0a794b086adbd128267b4339ab46c1b6a815a4ae7f3a6566b7854d97 lxd.initd
"
diff --git a/testing/lxd/lxd.initd b/testing/lxd/lxd.initd
index a3aa52c429..b2ec9bbc95 100644
--- a/testing/lxd/lxd.initd
+++ b/testing/lxd/lxd.initd
@@ -40,6 +40,12 @@ start_pre() {
fi
}
+stop() {
+ if [ -e /var/lib/lxd/unix.socket ]; then
+ $command shutdown
+ fi
+}
+
stop_post() {
systemd_ctr unmount
}