1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00

auto-upload crash log

This commit is contained in:
Darien Raymond 2018-07-17 13:11:46 +02:00
parent 8b8ae8342b
commit ed7036ac34
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -14,6 +14,9 @@ PIDFile=/var/run/v2ray.pid
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23 # Configuration error
# After unexpected exit, upload latest V2Ray log to official log service for future analysis.
# Comment out the following line if you have privacy concerns.
ExecStopPost=journalctl -u v2ray --since today | curl -X PUT --upload-file "-" https://transfer.sh/v2ray.log | awk '{print "{\"value1\":\""$1"\"}"}' | curl --header "Content-Type: application/json" --request POST --data @- https://www.v2ray.com/logupload/
[Install]
WantedBy=multi-user.target