Merge pull request #108 from xiagw/install-release-fix5
fix5: fix function start_v2raypull/114/head
commit
a9498beff0
|
@ -387,17 +387,13 @@ install_startup_service_file() {
|
||||||
|
|
||||||
start_v2ray() {
|
start_v2ray() {
|
||||||
if [[ -f '/etc/systemd/system/v2ray.service' ]]; then
|
if [[ -f '/etc/systemd/system/v2ray.service' ]]; then
|
||||||
if [[ -z "$V2RAY_CUSTOMIZE" ]]; then
|
if systemctl start "${V2RAY_CUSTOMIZE:-v2ray}"; then
|
||||||
systemctl start v2ray
|
echo 'info: Start the V2Ray service.'
|
||||||
else
|
else
|
||||||
systemctl start "$V2RAY_CUSTOMIZE"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [[ "$?" -ne 0 ]]; then
|
|
||||||
echo 'error: Failed to start V2Ray service.'
|
echo 'error: Failed to start V2Ray service.'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo 'info: Start the V2Ray service.'
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_v2ray() {
|
stop_v2ray() {
|
||||||
|
|
Loading…
Reference in New Issue