mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-03-09 15:50:00 +00:00
Update API, add check for omr-service, fix v2ray service file
This commit is contained in:
parent
8cef34ed5b
commit
8ac6293b58
5 changed files with 34 additions and 10 deletions
18
v2ray.service
Normal file
18
v2ray.service
Normal file
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=V2Ray Service
|
||||
Documentation=https://www.v2fly.org/
|
||||
After=network.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
|
||||
NoNewPrivileges=true
|
||||
ExecStart=/usr/bin/v2ray run -config /etc/v2ray/config.json
|
||||
Restart=always
|
||||
RestartPreventExitStatus=23
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue