aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xyardstick/benchmark/scenarios/availability/ha_tools/fault_process_kill.bash5
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