#!/bin/bash

scriptPath=$(cd $(dirname $0) && pwd)

cd ${scriptPath}

./frpc_status.sh

echo "按任意键继续..."
read -n 1 -s -r

stop() {
    echo "====================================================="
    echo "[stop $1]"
    ps aux | grep $1 | grep -v grep
    ps aux | grep $1 | grep -v grep | awk '{print $2}' | xargs kill -9 >/dev/null 2>&1
    echo "-----------------------------------------------------"
}


stop "frpc_wdt.sh"

