From 19b683d58d11f6e19c09baeb58ca5d7e8b19c601 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Tue, 18 Jun 2024 21:36:01 +0200 Subject: [PATCH] add "lxc.signal.stop = SIGTERM" definition to global lxc container config to ensure that the correct signal command is used when the host is shutdown and stops all LXC containers (refs #2762) --- scripts/install-lxc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install-lxc.sh b/scripts/install-lxc.sh index 24d2805dcf..0a84b86279 100755 --- a/scripts/install-lxc.sh +++ b/scripts/install-lxc.sh @@ -22,7 +22,7 @@ trap die ERR trap cleanup EXIT # Set default variables -VERSION="1.15" +VERSION="1.16" LOGFILE="/tmp/install-lxc.log" LINE= @@ -670,6 +670,7 @@ info "Creating LXC container config..." # create distribution/raspberrymatic specific config entries cat <>"${TEMP_DIR}/config" lxc.include = LXC_TEMPLATE_CONFIG/common.conf +lxc.signal.stop = SIGTERM lxc.apparmor.profile = unconfined lxc.seccomp.profile = /etc/unrestricted.seccomp lxc.cap.drop =