Skip to content

Commit

Permalink
systemd: fix exec start for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinoKaede committed Jan 3, 2022
1 parent 4b03da7 commit d13894e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release/config/systemd/system/v2ray.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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/config.json
ExecStart=/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23

Expand Down
2 changes: 1 addition & 1 deletion release/config/systemd/system/v2ray@.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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
ExecStart=/usr/local/bin/v2ray run -config /usr/local/etc/v2ray/%i.json
Restart=on-failure
RestartPreventExitStatus=23

Expand Down

0 comments on commit d13894e

Please sign in to comment.