diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-11-10 15:06:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-10 15:06:20 +0000 |
commit | af3e090dfcf2448d828308ca83ee79fdbd386245 (patch) | |
tree | fd14fc185fc7850be31c07992ba076236fccb14a | |
parent | 9894640fb446b587c621804572eb580886bae7a1 (diff) | |
parent | d70cbc5c6bd03cb68a13dcab50a12178982f5c44 (diff) |
Merge "tc053 kill haproxy wrong mismatch"
-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 |