From 010ec5d24ecdbf4e3f4e8b91bd61e2d883e19f62 Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 27 Dec 2025 22:24:51 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=E5=90=AF=E7=94=A8tg=5Fbot?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=8E=EF=BC=8C=E5=85=B3=E9=97=AD=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=81=B6=E5=B0=94=E4=BC=9A=E5=8D=A1=E4=BD=8F=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/starts/shellcrash.procd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/starts/shellcrash.procd b/scripts/starts/shellcrash.procd index 9e4803bc..a14f8e8e 100644 --- a/scripts/starts/shellcrash.procd +++ b/scripts/starts/shellcrash.procd @@ -8,7 +8,7 @@ USE_PROCD=1 #获取目录 CRASHDIR=$(cat /etc/profile | grep CRASHDIR | awk -F "\"" '{print $2}') [ -z "$CRASHDIR" ] && CRASHDIR=$(cat ~/.bashrc | grep CRASHDIR | awk -F "\"" '{print $2}') -source "$CRASHDIR"/configs/command.env #加载启动命令和启动目录 +. "$CRASHDIR"/configs/command.env #加载启动命令和启动目录 start_service() { if [ -n "$(cat $CRASHDIR/configs/ShellCrash.cfg | grep 'firewall_area=5')" ]; then @@ -33,6 +33,7 @@ start_service() { fi } stop_service() { + killall bot_tg.sh 2>/dev/null procd_close_instance "$CRASHDIR"/starts/fw_stop.sh }