~修复因自启延迟与守护进程冲突导致的开机启动失败的问题

This commit is contained in:
juewuy 2024-09-07 21:05:13 +08:00
parent 4949e9ce1c
commit 55916882b1

View File

@ -1924,8 +1924,11 @@ restart)
$0 start
;;
daemon)
[ ! -f $TMPDIR/crash_start_time ] && sleep 20
if [ -f $TMPDIR/crash_start_time ];then
$0 start
else
sleep 60 && touch $TMPDIR/crash_start_time
fi
;;
debug)
[ -n "$(pidof CrashCore)" ] && $0 stop >/dev/null #禁止多实例