Browse Source

Merge "Fix killscript regex match for libpod-conmon-*" into stable/victoria

changes/52/824252/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
7a25af40b7
  1. 2
      deployment/neutron/kill-script

2
deployment/neutron/kill-script

@ -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="[-.]"} /:pids:/{print $3}' /proc/$PID/cgroup)
CT_ID=$(awk 'BEGIN {FS=".scope|-"} /0::|:pids:/ {if ($(NF-1)) print $(NF-1);exit}' /proc/$PID/cgroup)
CT_NAME=$($CLI inspect -f '{{.Name}}' $CT_ID)
case $SIG in

Loading…
Cancel
Save