2 Star 2 Fork 4

smooth / zanePerfor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
servers-restart.sh 359 Bytes
一键复制 编辑 原始数据 按行查看 历史
wangweianger 提交于 2018-11-21 11:22 . 数据库分表
#!/bin/bash
cd /data/performance
npm stop
ps -ef | grep performance | grep -v grep | grep -v PPID | awk '{ print $2}' | xargs kill -9
# sleep 10s
npm start
result=$?
while [ $result -ne 0 ]
do
npm start
result=$?
if [ $result -eq 0 ]
then
echo "执行成功退出循环"
else
echo "执行失败重新执行"
fi
done
JavaScript
1
https://gitee.com/smooth00/zanePerfor.git
git@gitee.com:smooth00/zanePerfor.git
smooth00
zanePerfor
zanePerfor
master

搜索帮助