~修复停止服务时未同步停止tg_bot进程的bug

This commit is contained in:
juewuy
2026-01-27 17:33:52 +08:00
parent ee523035a6
commit bbe711b1ce
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ bot_tg_start(){
}
bot_tg_stop(){
cronset 'TG_BOT守护进程'
[ -f "$TMPDIR/bot_tg.pid" ] && kill -TERM "$(cat "$TMPDIR/bot_tg.pid")"
[ -f "$TMPDIR/bot_tg.pid" ] && kill -TERM "$(cat "$TMPDIR/bot_tg.pid")" 2>/dev/null
killall bot_tg.sh 2>/dev/null
rm -f "$TMPDIR/bot_tg.pid"
}