Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Neutron: Use the pids subsystem to look up container id" into …
Browse files Browse the repository at this point in the history
…stable/ussuri
  • Loading branch information
Zuul authored and openstack-gerrit committed Jul 16, 2021
2 parents 6c4d4fb + 6a3ebac commit 9127020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/neutron/kill-script
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ signal_container() {
{% raw -%}
if [ -f /proc/$PID/cgroup ]; then
# Get container ID based on process cgroups
CT_ID=$(awk 'BEGIN {FS="[-.]"} /name=/{print $3}' /proc/$PID/cgroup)
CT_ID=$(awk 'BEGIN {FS="[-.]"} /:pids:/{print $3}' /proc/$PID/cgroup)
CT_NAME=$($CLI inspect -f '{{.Name}}' $CT_ID)

case $SIG in
Expand Down

0 comments on commit 9127020

Please sign in to comment.