-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
demon start failed in windows platform #19
Comments
应该是个 bug,对windows平台的经验不多,如果可以,直接使用 mg daemon run 来运行服务。 |
直接运行 mg daemon run 会占用当前 terminal。所以不能用这条命令运行一个后台服务。 |
可以多开一个 terminal,或者使用 tmux 创建多个子窗口 |
Is the issue resolved? |
No. It's just I don't want it to open. Consider to use service? |
I think this is an essential issue that exists in the current codebase. Therefore, we should keep it open. But I am currently don't have any bandwidths to take a deep look. Hopefully, I might find some time in early Oct. I would be appreciated and be willing to take a look if you send a PR to fix this issue. |
windows 平台 daemon 命令运行报错
windows 平台下
mg daemon start
运行报错。我觉得应该是 mg daemon start 没有调用 s.Run 方法的原因。
复现步骤
make
打包应用。./mg daemon install
注册服务。./mg daemon start
运行服务。解释
个人猜测,windows 平台下服务注册与启动流程应该是这样的:
path/to/your/service run
注册到系统服务中。path/to/your/service run
命令。而当前的
mg daemon run
命令直接在当前协程运行了业务逻辑,并且没使用 s.Run 方法。导致 Handler 无法与系统进行交互。最终超时报错。
The text was updated successfully, but these errors were encountered: