release/config/systemd/system/[email protected]
raw| 1 | [Unit] |
| 2 | Description=V2Ray Service |
| 3 | Documentation=https://www.v2fly.org/ |
| 4 | After=network.target nss-lookup.target |
| 5 | |
| 6 | [Service] |
| 7 | User=nobody |
| 8 | CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE |
| 9 | AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE |
| 10 | NoNewPrivileges=true |
| 11 | ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json |
| 12 | Restart=on-failure |
| 13 | RestartPreventExitStatus=23 |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |