mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-10 23:41:22 +00:00
~优化定时任务
This commit is contained in:
@@ -7,7 +7,7 @@ bot_tg_start(){
|
||||
bot_tg_cron
|
||||
}
|
||||
bot_tg_stop(){
|
||||
cronset 'TG_BOT守护进程'
|
||||
cronload | grep -q 'TG_BOT' && cronset 'TG_BOT'
|
||||
[ -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"
|
||||
|
||||
Reference in New Issue
Block a user