mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~优化nftables启动流程,优化启用cn绕过时的运行效率和数据显示 ~修复tg机器人守护进程没有生效的bug ~修复tg机器人总是绑定失败的bug ~修复9-8功能找不到文件的bug ~修复停止服务时的报错 ~修复启动时自动下载缺失数据库时的意外报错 ~修复nftables启用了本机代理后局域网代理出错的bug
18 lines
390 B
Bash
18 lines
390 B
Bash
|
|
[ -z "$CRASHDIR" ] && CRASHDIR=$( cd $(dirname $0);cd ..;pwd)
|
|
PIDFILE="/tmp/ShellCrash/$1.pid"
|
|
|
|
if [ -f "$PIDFILE" ]; then
|
|
PID="$(cat "$PIDFILE")"
|
|
if [ -n "$PID" ] && kill -0 "$PID" 2>/dev/null; then
|
|
return 0
|
|
else
|
|
if [ "$1" = shellcrash ];then
|
|
"$CRASHDIR"/start.sh start
|
|
else
|
|
. "$CRASHDIR"/starts/start_legacy.sh
|
|
start_legacy "$CRASHDIR/menus/bot_tg.sh" "$1"
|
|
fi
|
|
fi
|
|
fi
|