v2ray.service: prevent restart on bad config
parent
9a02fa234b
commit
919b53fc43
|
@ -10,6 +10,7 @@ NoNewPrivileges=true
|
||||||
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
|
Environment=V2RAY_LOCATION_ASSET=/usr/local/share/v2ray/
|
||||||
ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/
|
ExecStart=/usr/local/bin/v2ray -confdir /usr/local/etc/v2ray/
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
RestartPreventExitStatus=23
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue