소스 검색

restart the service on core dump

v2ray 9 년 전
부모
커밋
5602f6dca5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      release/config/systemd/v2ray.service

+ 1 - 0
release/config/systemd/v2ray.service

@@ -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