9 Star 89 Fork 20

RACHEL/fastsearch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fastsearch.sh 414 Bytes
一键复制 编辑 原始数据 按行查看 历史
内容可能含有违规信息 提交于 2024-08-26 13:30 +08:00 . fastsearch
#!/bin/bash
#每分钟检测fastsearch运行
#*/1 * * * * /data/fastsearch/fastsearch.sh > /dev/null 2>&1
#每3点 重启fastsearch
#0 3 * * * /etc/init.d/fastsearch.d restart
count=`ps -fe |grep "fastsearch"|grep "config.yaml" -c`
echo $count
if [ $count -lt 1 ]; then
echo "restart"
echo $(date +%Y-%m-%d_%H:%M:%S) >/data/fastsearch/restart.log
/etc/init.d/fastsearch.d restart
else
echo "is running"
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/rachel_os/fastsearch.git
git@gitee.com:rachel_os/fastsearch.git
rachel_os
fastsearch
fastsearch
master

搜索帮助