-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
2.5.x version smooth restart error #3179
Comments
gf/net/ghttp/ghttp_server_admin_unix.go Line 35 in 0b6dd6f
restartWebServers 第三个参数newExeFilePath不能为"" gf/net/ghttp/ghttp_server_admin_process.go Lines 116 to 123 in 0b6dd6f
可以改成os.Args[0] 我个人比较建议直接自己实现一个路由调用 ghttp.RestartAllServer(ctx, os.Args[0]) |
gf/net/ghttp/ghttp_server_admin_unix.go Line 35 in 0b6dd6f
restartWebServers The third parameter newExeFilePath cannot be "" gf/net/ghttp/ghttp_server_admin_process.go Lines 116 to 123 in 0b6dd6f
Can be changed to os.Args[0] I personally recommend directly implementing a routing call ghttp.RestartAllServer(ctx, os.Args[0]) |
框架版本从2.4.4 => 2.5.4后平滑重启不可用
执行命令
kill -SIGUSR1 进程ID
报错信息
2023-11-27 17:42:21.215 [ERROJ 21922: fork process failed, error:exec: no command, i"default":t"http":":2376#3","http
$":""}}
2023-11-27 17:42:21.215 21922: server restarts faile
The text was updated successfully, but these errors were encountered: