diff --git a/deployment/neutron/kill-script b/deployment/neutron/kill-script index c2ab55298b..e705ac5130 100644 --- a/deployment/neutron/kill-script +++ b/deployment/neutron/kill-script @@ -17,13 +17,13 @@ SIG=$1 PID=$2 NETNS=$(ip netns identify ${PID}) -if [ "x${NETNS}" == "x" ]; then - add_date "No network namespace detected, exiting" - exit 1 -fi - {% if container_cli == 'podman' %} -CLI="nsenter --net=/run/netns/${NETNS} --preserve-credentials -m -t 1 podman" +if [ "x${NETNS}" == "x" ]; then + CLI="nsenter --all --preserve-credentials -t 1 podman" + SIG=9 +else + CLI="nsenter --net=/run/netns/${NETNS} --preserve-credentials -m -t 1 podman" +fi {% elif container_cli == 'docker' %} {% if docker_additional_sockets and docker_additional_sockets|length > 0-%} export DOCKER_HOST=unix://{{ docker_additional_sockets[0] }}