Merge "Do not use lsns to kill non-containerized epmd on the host"

This commit is contained in:
Zuul 2017-12-01 21:44:07 +00:00 committed by Gerrit Code Review
commit 4f9a486fbc

View File

@ -205,7 +205,7 @@ outputs:
shell: |
echo 'export ERL_EPMD_ADDRESS=127.0.0.1' > /etc/rabbitmq/rabbitmq-env.conf
echo 'export ERL_EPMD_PORT=4370' >> /etc/rabbitmq/rabbitmq-env.conf
for pid in $(pgrep epmd); do if [ "$(lsns -o NS -p $pid)" == "$(lsns -o NS -p 1)" ]; then kill $pid; break; fi; done
for pid in $(pgrep epmd --ns 1 --nslist pid); do kill $pid; done
metadata_settings:
get_attr: [RabbitmqBase, role_data, metadata_settings]
upgrade_tasks: