diff options
author | Simon Rettberg | 2024-02-02 15:34:31 +0100 |
---|---|---|
committer | Simon Rettberg | 2024-02-02 15:34:31 +0100 |
commit | c257e992dec5a51d13cf9dc84d0a8a573557403b (patch) | |
tree | 92707fe320d47da9e1bc360e9939b92969a1f76f | |
parent | [vbox-src] Add progress output, skip udev reload with MaxiLinux (diff) | |
download | mltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.tar.gz mltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.tar.xz mltk-c257e992dec5a51d13cf9dc84d0a8a573557403b.zip |
[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.
-rwxr-xr-x | core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_local_stage4 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |