| 1 |
[Unit] |
| 2 |
Description=V2Ray Service |
| 3 |
Documentation=https://www.v2ray.com/ https://www.v2fly.org/ |
| 4 |
After=network-online.target nss-lookup.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=simple |
| 8 |
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE |
| 9 |
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE |
| 10 |
DynamicUser=true |
| 11 |
NoNewPrivileges=true |
| 12 |
Environment=V2RAY_LOCATION_ASSET=/etc/v2ray |
| 13 |
ExecStart=/usr/bin/v2ray -config /etc/v2ray/config.json |
| 14 |
Restart=on-failure |
| 15 |
|
| 16 |
[Install] |
| 17 |
WantedBy=multi-user.target |