mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-10 15:37:28 +00:00
原 nohup+tail-f 模式下,Docker SIGTERM 发给 tail 而非 Java 进程, 导致 ShutdownHook 永远不会触发,资源无法优雅关闭。 改为 exec 让 Java 成为 PID 1,正确接收信号。 同时支持通过 JVM_XMX/JVM_OPTS 环境变量自定义 JVM 参数。