Skip to contentSkip to conversation

ts-host-ping-check: Do not run if host is being reused

PATCH In review Ian Campbell 2 participants 3 messages Apr 1, 2015

lore
Share & tools
lore
#0 lore raw

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
index 74c008c..ca8920c 100755
@@ -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
Acked-by on v1 1/1
#1 lore raw

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.

#2 lore raw
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

Ian.