2020-08-17 02:23:39 +00:00
|
|
|
[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
|
2020-09-06 08:03:26 +00:00
|
|
|
RestartPreventExitStatus=23
|
2020-08-17 02:23:39 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|