Skip to content

Commit

Permalink
add security description to systemd unit file. fixes #1011.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Apr 13, 2018
1 parent 96c3d17 commit 3c2b75f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions release/config/systemd/v2ray.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ After=network.target
Wants=network.target

[Service]
# This service runs as root. You may consider to run it as another use for security concerns.
# By uncommenting the following two lines, this service will run as user v2ray/v2ray.
# More discussion at https://github.com/v2ray/v2ray-core/issues/1011
# User=v2ray
# Group=v2ray
Type=simple
PIDFile=/var/run/v2ray.pid
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
Expand Down

0 comments on commit 3c2b75f

Please sign in to comment.