summaryrefslogtreecommitdiffstats
path: root/core/modules/dnbd3-proxy-mode
diff options
context:
space:
mode:
authorJonathan Bauer2017-10-13 16:03:42 +0200
committerJonathan Bauer2017-10-13 16:03:42 +0200
commit75462fd7de14287e463421105f32038695ffc145 (patch)
treed215a8583327be7315e744615272a10e90039fb0 /core/modules/dnbd3-proxy-mode
parent[dnbd3-proxy-mode] fix typo fix, remove files ... (diff)
downloadmltk-75462fd7de14287e463421105f32038695ffc145.tar.gz
mltk-75462fd7de14287e463421105f32038695ffc145.tar.xz
mltk-75462fd7de14287e463421105f32038695ffc145.zip
[dnbd3-proxy-mode] SLX_BGR for bg replication
Diffstat (limited to 'core/modules/dnbd3-proxy-mode')
-rwxr-xr-xcore/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy
index 7b9a94b6..1d5d2de2 100755
--- a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy
+++ b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-setup_dnbd3_proxy
@@ -49,6 +49,8 @@ fi
# Using the information given by the server in /opt/openslx/config
. /opt/openslx/config
+DNBD3_BGR="false"
+[ -n "${SLX_DNBD3_BGR}" ] && DNBD3_BGR="true"
DNBD3_PORT=5003
rm -f "${DNBD3_CONF_DIR}/server.conf"
# Refer to http://git.openslx.org/dnbd3.git/tree/conf for configuration options
@@ -59,7 +61,7 @@ basePath=${DNBD3_DATA_DIR}
serverPenalty=100000
clientPenalty=0
isProxy=true
-backgroundReplication=false
+backgroundReplication=${DNBD3_BGR}
removeMissingImages=false
uplinkTimeout=1250
clientTimeout=15000