v2ray.service: prevent restart on bad config

pull/82/head
DuckSoft 2020-09-06 15:47:55 +08:00 committed by GitHub
parent 9a02fa234b
commit 919b53fc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ NoNewPrivileges=true
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/
Restart=on-failure
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target