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

restart the service on core dump

This commit is contained in:
v2ray 2016-02-18 00:15:16 +01:00
parent c9750fa3ba
commit 5602f6dca5

View File

@ -8,6 +8,7 @@ Type=simple
PIDFile=/var/run/v2ray.pid
ExecStart=/usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
ExecStop=kill $(cat /var/run/v2ray.pid)
Restart=on-abnormal
[Install]
WantedBy=multi-user.target