~修复自启延迟会在手动启动时生效的bug

This commit is contained in:
juewuy 2024-10-01 09:54:41 +08:00
parent fa49934a71
commit 273a2359d2

View File

@ -1801,8 +1801,8 @@ bfstart() { #启动前
afstart() { #启动后 afstart() { #启动后
[ -z "$firewall_area" ] && firewall_area=1 [ -z "$firewall_area" ] && firewall_area=1
#延迟启动 #延迟启动
[ -n "$start_delay" ] && [ "$start_delay" -gt 0 ] && { [ ! -f "$TMPDIR"/crash_start_time ] && [ -n "$start_delay" ] && [ "$start_delay" -gt 0 ] && {
logger "ShellCrash将延迟$start_delay秒启动" 31 pushoff logger "ShellCrash将延迟$start_delay秒启动" 31
sleep $start_delay sleep $start_delay
} }
#设置循环检测面板端口以判定服务启动是否成功 #设置循环检测面板端口以判定服务启动是否成功