mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-12 23:36:43 -05:00
16 lines
390 B
SYSTEMD
16 lines
390 B
SYSTEMD
|
[Unit]
|
||
|
Description=V2Ray Service
|
||
|
Documentation=https://www.v2fly.org/
|
||
|
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/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|