ts-host-ping-check: Do not run if host is being reused
PATCH 1/1 ts-host-ping-check: Do not run if host is being reused
Assume it was done at install time.
Mostly this is to avoid my sitting around waiting 20s when using standalone mode, perhaps there is a better way?
--- ts-host-ping-check | 2 ++ 1 file changed, 2 insertions(+)
ts-host-ping-check +2 -0
@@ -26,6 +26,8 @@ our ($whhost) = @ARGV; $whhost ||= 'host'; our $ho= selecthost($whhost); +exit 0 if $ho->{SharedReady}; + $_ = `ping -D -i 0.2 -c 100 $ho->{Ip} | tee /dev/stderr`; m/\b([0-9.]+)% packet loss\b/ or die "$_ ?";
Signature · 1 line
2.1.4
Ian Campbell writes ("[PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused"):
Quoted 4 lines
Assume it was done at install time.
Mostly this is to avoid my sitting around waiting 20s when using standalone mode, perhaps there is a better way?
I think this way is fine.
Ian.
Quoted 7 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] ts-host-ping-check: Do not run if host is being reused"):
Quoted 4 lines
Assume it was done at install time.
Mostly this is to avoid my sitting around waiting 20s when using standalone mode, perhaps there is a better way?
I think this way is fine.
Thanks, I'll drop this comment before it goes to pretest.
Quoted 3 lines
Acked-by Ian Jackson <[email protected]>Ian.