From c257e992dec5a51d13cf9dc84d0a8a573557403b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 2 Feb 2024 15:34:31 +0100 Subject: [dnbd3-proxy-mode] local proxy: Skip last iteration of forced switch This looks ugly in systemd-analyze plot - the service takes forever. The remaining aproaches should be enough to cover the bootup process - if we need something more permanent, dnbd3 should be extended to forbid switching unless the server is actually unreachable. --- .../data/opt/openslx/scripts/systemd-dnbd3_local_stage4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 index 0afa7a26..d5f0e62d 100755 --- a/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 +++ b/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 @@ -18,7 +18,7 @@ if [ -d "/mnt/dnbd3" ] && [ -b /dev/dnbd0 ] \ # local dnbd3 proxy replies slower than some upstream server on the # network, which is not that unlikely if the data is not cached # locally yet. - for i in 1 2 4 8 16 32 64 128; do + for i in 1 2 4 8 16 32 64; do dnbd3-client -s "127.0.0.1:$DNBD3_PORT" -d /dev/dnbd0 &> /dev/null usleep ${i}00000 # tenths of a second done -- cgit v1.2.3-55-g7522