-
Notifications
You must be signed in to change notification settings - Fork 9k
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
v2ray.service upgrade #2091
v2ray.service upgrade #2091
Conversation
做了一点微小的工作,例如: 去掉了在非 `forking` 类型中几乎无意义的 `PIDFile` ([因为 systemd 不会写入](https://www.freedesktop.org/software/systemd/man/systemd.service.html#PIDFile=)) 把[不推荐使用](https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/)的 `Wants=network.target` 换成 `Wants=network-online.target nss-lookup.target`
需要什么回复吗· |
V2Ray为什么需要依赖nss呢?是否可以解释一下具体的原因。 |
network-online在有多个网卡但是只使用了其中一个的系统上会不会出现需要等待到超时的情况? |
V2Ray在启动后并不会主动进行网络通信。除非监听地址是某个interface的地址,否则这么改并没有明显的好处。 |
这个的话,主要是为了保证启动时域名可以正常进行解析 |
这个得看 network-online 对应的服务是怎么测的,大多只要是能联网就没问题 |
什么情况下需要在启动的时候解析域名呢? |
包括但不限于中转 |
default Type=exec -> Type=simple
但是既然有流量进入的话,就说明网络已经起来了呀。我现在比较担心在实际流量已经开始来的情况下,V2还在等这个network-online的可能 |
已知的 NetworkManager-wait-online.service 与 systemd-wait-online.service 在网络可用时就会准备好的吧 顺便 |
Weaken dependence on nss-lookup.target Modify comments about #1011
我过一会似乎还要提一个 pr |
做了一点微小的工作,例如:
去掉了在非
forking
类型中几乎无意义的PIDFile
(因为 systemd 不会写入)把不推荐使用的
Wants=network.target
换成Wants=network-online.target nss-lookup.target