-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KookBC 在被 Linux nohup 命令包装时无法工作 #30
Labels
bug
Something isn't working
Comments
在尝试了如下方案后,我决定从依赖库 TerminalConsoleAppender 下手,移除其 start 方法的 try catch ,转为由我自己处理。
以上方案均在 nohup 包装下实验,用单独的 Java 文件编写对应代码。 |
由 @xiaoACE6716 提供的资料: mamoe/mirai-console#229 |
更改修补方案: 不再 fork TCA ,改为提供一个类似 Condition 的对象用于挂起线程。 |
Merged
进一步修补方案: 使用检查当前目录是否存在一个名为 KOOKBC_STOP 的文件的方式判断是否应该关闭程序。 |
SNWCreations
added a commit
that referenced
this issue
Apr 8, 2023
This commit has fixed issue #30. This commit added a special way for users who uses "nohup" command to run KookBC to stop the client instance. See the log in the working directory, you will know. (It is easy, write a file named KOOKBC_STOP to the working directory, KookBC will found it and stop itself.) ------ Tested-by: ZX夏夜之风 <snwcreations@qq.com>
#32 修补不彻底。此 Issue 暂时不能关闭。 |
SNWCreations
added a commit
that referenced
this issue
Apr 8, 2023
Merged
SNWCreations
added a commit
that referenced
this issue
Apr 8, 2023
SNWCreations
added a commit
that referenced
this issue
Apr 8, 2023
Merged
完全修复。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
它原本由社区成员 Lonely#6788 提交。
您期望得到什么
KookBC 在无控制台模式下正常工作。
实际得到什么
KBCClient#loop 方法出现被依赖库忽略的报错,然后程序自动调用 shutdown 后结束。
重现错误的步骤
nohup java -jar kookbc.jar &
)报错日志
相关信息
The text was updated successfully, but these errors were encountered: