v2ray@.service: prevent restart on bad config

pull/82/head
DuckSoft 2020-09-06 15:47:03 +08:00 committed by GitHub
parent dd07d27f89
commit 9a02fa234b
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 -config /usr/local/etc/v2ray/%i.json
Restart=on-failure
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target