diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-12-16 08:38:34 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-12-16 08:38:34 +0000 |
commit | 81313a8b4089fe31451cdc64801c689d43158ae1 (patch) | |
tree | d5721337c6eadd1ce6a5a98c295e8136662015f8 | |
parent | 7ba08ddacb134663faecec31d54c47b7ae8258a3 (diff) | |
parent | 23264c34a2eedc58802e1415a6e2a36f79a001d9 (diff) |
Merge "tc053 kill haproxy wrong mismatch" into stable/euphrates
-rwxr-xr-x | yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash index a865b6551..eec86e133 100755 --- a/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash +++ b/yardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash @@ -20,6 +20,11 @@ if [ "$process_name" = "keystone" ]; then do kill -9 "${pid}" done +elif [ "$process_name" = "haproxy" ]; then + for pid in $(pgrep -f "^/usr/[^ ]*/${process_name}"); + do + kill -9 "${pid}" + done else for pid in $(pgrep -f "/usr/.*/${process_name}"); do |