1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-10-16 16:04:52 -04:00
v2fly/release/config/systemd/system/v2ray@.service
Dct Mei 3e612d899c
feat: New systemd unit file
1. Add systemd/system/v2ray.service .
2. Add systemd/system/v2ray@.service .
3. Modify the installation path in the BUILD file.

issue v2fly/fhs-install-v2ray#53
2020-08-17 10:23:39 +08:00

17 lines
447 B
Desktop File

[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
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/%i.json
Restart=on-failure
[Install]
WantedBy=multi-user.target