重启进程脚本
2020-04-30 本文已影响0人
风亡小窝
pids=$(ps -ef | grep -E "cs-client|cs-server" | awk '{print $2}')
for pid in $pids
do
echo "killed $pid"
kill -2 $pid
done
cd ~/services/qiye/apps/short
nohup ./short-qiye >> ~/qiye/short.log 2>&1 &