diff --git a/release/config/systemd/system/v2ray.service b/release/config/systemd/system/v2ray.service index a52840ea4..799dc7e8e 100644 --- a/release/config/systemd/system/v2ray.service +++ b/release/config/systemd/system/v2ray.service @@ -8,8 +8,7 @@ User=nobody CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE NoNewPrivileges=true -Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/ -ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/ +ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json Restart=on-failure [Install] diff --git a/release/config/systemd/system/v2ray@.service b/release/config/systemd/system/v2ray@.service index 0ac2be014..d3cc518a4 100644 --- a/release/config/systemd/system/v2ray@.service +++ b/release/config/systemd/system/v2ray@.service @@ -8,7 +8,6 @@ User=nobody CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE NoNewPrivileges=true -Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/ ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json Restart=on-failure