mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
421 B
INI
16 lines
421 B
INI
2 years ago
|
[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 run -config /usr/local/etc/v2ray/%i.json
|
||
|
Restart=on-failure
|
||
|
RestartPreventExitStatus=23
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|