|
@@ -14,7 +14,8 @@ Type=simple
|
|
|
# More discussion at https://github.com/v2ray/v2ray-core/issues/1011
|
|
# More discussion at https://github.com/v2ray/v2ray-core/issues/1011
|
|
|
User=root
|
|
User=root
|
|
|
#User=v2ray
|
|
#User=v2ray
|
|
|
-#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
|
|
|
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
|
|
|
|
|
+NoNewPrivileges=yes
|
|
|
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
|
|
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
|
|
|
Restart=on-failure
|
|
Restart=on-failure
|
|
|
# Don't restart in the case of configuration error
|
|
# Don't restart in the case of configuration error
|