Skip to content

Commit

Permalink
add "lxc.signal.stop = SIGTERM" definition to global lxc container
Browse files Browse the repository at this point in the history
config to ensure that the correct signal command is used when the host
is shutdown and stops all LXC containers (refs #2762)
  • Loading branch information
jens-maus committed Jun 18, 2024
1 parent 0864b00 commit 19b683d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/install-lxc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=

Expand Down Expand Up @@ -670,6 +670,7 @@ info "Creating LXC container config..."
# create distribution/raspberrymatic specific config entries
cat <<EOF >>"${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 =
Expand Down

0 comments on commit 19b683d

Please sign in to comment.