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 &
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 &
本文标题:重启进程脚本
本文链接:https://www.haomeiwen.com/subject/klctghtx.html
网友评论