1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

fix systemd config

This commit is contained in:
Darien Raymond 2018-07-18 08:30:39 +02:00
parent ecd45ffb65
commit ad336ca568
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -13,7 +13,8 @@ Type=simple
PIDFile=/var/run/v2ray.pid
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23 # Configuration error
# Don't restart in the case of configuration error
RestartPreventExitStatus=23
# After unexpected exit, upload latest V2Ray log to official log service for future analysis.
# ExecStopPost=/usr/bin/v2ray/upload.sh