summarylogtreecommitdiffstats
path: root/v2ray-rust@.service
blob: b453dddef10224274a30302ae5c37b25792127df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[Unit]
Description=V2Ray-Rust Service
Documentation=https://www.github.com/Qv2ray/v2ray-rust
After=network.target nss-lookup.target

[Service]
User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/v2ray-rust --config /etc/v2ray-rust/%i.toml

[Install]
WantedBy=multi-user.target