#!/bin/bash
#通过当前节点进程id 挂起整个集群节点
ips="192.168.2.222 192.168.2.223 192.168.2.225"
cmd_line=$(cat /proc/$1/cmdline)
proc_full_name=${cmd_line%-*}
echo $proc_full_name
for ip in $ips;do
echo $ip
ssh $ip pkill  -f -INT $proc_full_name
done
