Update serv00.sh
This commit is contained in:
@@ -1122,7 +1122,7 @@ cat $WORKDIR/ip.txt
|
|||||||
echo
|
echo
|
||||||
if [[ -e $WORKDIR/list.txt ]]; then
|
if [[ -e $WORKDIR/list.txt ]]; then
|
||||||
green "已安装sing-box"
|
green "已安装sing-box"
|
||||||
ps aux | grep '[c]onfig' > /dev/null && green "主进程启动正常" || yellow "主进程启动中……2分钟后可再次进入脚本查看"
|
ps aux | grep '[c]onfig' > /dev/null && green "主进程运行正常" || yellow "主进程启动中……2分钟后可再次进入脚本查看"
|
||||||
if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep [l]ocalhost > /dev/null; then
|
if [ -f "$WORKDIR/boot.log" ] && grep -q "trycloudflare.com" "$WORKDIR/boot.log" 2>/dev/null && ps aux | grep [l]ocalhost > /dev/null; then
|
||||||
green "当前Argo临时域名:$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' $WORKDIR/boot.log 2>/dev/null | sed 's@https://@@')"
|
green "当前Argo临时域名:$(grep -oE 'https://[[:alnum:]+\.-]+\.trycloudflare\.com' $WORKDIR/boot.log 2>/dev/null | sed 's@https://@@')"
|
||||||
elif ps aux | grep [t]oken > /dev/null; then
|
elif ps aux | grep [t]oken > /dev/null; then
|
||||||
@@ -1135,7 +1135,7 @@ else
|
|||||||
check_process="! ps aux | grep '[c]onfig' > /dev/null || ! ps aux | grep [t]oken > /dev/null"
|
check_process="! ps aux | grep '[c]onfig' > /dev/null || ! ps aux | grep [t]oken > /dev/null"
|
||||||
fi
|
fi
|
||||||
(crontab -l 2>/dev/null; echo "*/2 * * * * if $check_process; then /bin/bash serv00keep.sh; fi") | crontab -
|
(crontab -l 2>/dev/null; echo "*/2 * * * * if $check_process; then /bin/bash serv00keep.sh; fi") | crontab -
|
||||||
yellow "Cron保活丢失?已修复成功"
|
yellow "Cron保活可能被重置清空!现已修复成功"
|
||||||
else
|
else
|
||||||
green "Cron保活运行正常"
|
green "Cron保活运行正常"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user