mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 08:25:54 +03:00
[GH-ISSUE #43] 后台守护运行如何结束啊 #19
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @helllkz on GitHub (Mar 9, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/43
我在配置文件里面写了
--local-type=tcp
--local=:58000
--daemon
--forever
现在没法结束了呢,proxy的pid一直在增加,没法kill了
@helllkz commented on GitHub (Mar 9, 2018):
@helllkz commented on GitHub (Mar 9, 2018):
重启了下服务器,并且启用了log就没这个问题了
@snail007 commented on GitHub (Mar 9, 2018):
说明启动参数或者其它问题导致子进程异常,启动就退出,然后daemon进程就会一直重启子进程,一般建议加上log,可以看到为什么子进程异常退出。
@helllkz commented on GitHub (Mar 9, 2018):
@snail007
还是有问题呢,我用配置文件启动就会出现这个问题
http
--local-type=tls
--local=:58000
--cert=/etc/proxy/proxy.crt
--key=/etc/proxy/proxy.key
--daemon
--forever
--log=/tmp/proxy.log
但是我直接启动就不会呢
proxy http -t tls -p ":58000" -C /etc/proxy/proxy.crt -K /etc/proxy/proxy.key --forever --daemon --log /tmp/proxy.log
@snail007 commented on GitHub (Mar 9, 2018):
引用的命令行类库对配置文件解析不是很好,容易出错,所以建议先写shell脚本取代,后续会优化这块.
@daoiqi commented on GitHub (Nov 19, 2018):
这样我是起来成功了, deamon放到配置文件里会失败