2 Star 0 Fork 0

SiteOL 站线 / smart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
restart.sh 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
米虫 提交于 2023-12-26 20:49 . init
#!/usr/bin/env bash
export ENV=test
export NODE=APP01
app="smart"
logsFolder="../logs"
echo "Killing $app process..."
ps -ef | grep -i $app |grep -v "grep"
killall $app
echo "Starting $app process ..."
mkdir -p $logsFolder
nohup ./$app >> $logsFolder/$app.log 2>&1 &
ps -ef | grep -i $app |grep -v "grep"
echo "Sleep 5 seconds..."
sleep 5
tail -n 30 $logsFolder/$app.log
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/siteol-com/smart.git
git@gitee.com:siteol-com/smart.git
siteol-com
smart
smart
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891