Simple-Tracker / qBittorrent-ClientBlocker

一款适用于 qBittorrent/Transmission (Beta)/BitComet (Beta, Partial) 的客户端屏蔽器, 默认屏蔽包括但不限于迅雷等客户端. A client blocker compatible with qBittorrent/Transmission (Beta)/BitComet (Beta, Partial) which is prohibited to include but not limited to clients such as Xunlei.
MIT License
749 stars 17 forks source link

使用nohup运行,会隔一分钟自动退出? #89

Open isolitude opened 1 week ago

isolitude commented 1 week ago

运行代码 nohup ./qBittorrent-ClientBlocker & 报错 [2024-07-01 18:15:57][CheckPeer_AddBlockPeer (Bad-Client_Normal)] 180.163.120.27:15309 ""|"hp/torrent/v2.01" (TorrentInfoHash: 45937611722329d14f503709abeb54dcfea48cab). [2024-07-01 18:15:57][Task] Ban Client (This time): 1, Ban IP (This time): 0, Ban IP/Client (Current): 3. [2024-07-01 18:16:07][ReqStop] Program is stopping... Catching signal: SIGTERM Exiting cleanly "nohup.out" 303L, 25638B

运行不到十分钟就会自动退出,但是在shell中运行就没问题。版本为3.4 linux arm64 ,以前的版本也有这个问题,挺奇怪的

IAALAI commented 1 week ago

自动退出?不建议使用 nohup,建议手动将其注册为服务。如果一定要使用nohup,请确定你的执行环境,某些时候终止信号可能不会被nohup捕获

Simple-Tracker commented 5 days ago

感谢反馈!

程序也许在后台捕捉到了一个 SIGTERM 的退出信号, 正常情况下是不会发生的, 可以尝试使用 screen 或注册为服务.