From 35706be627ba72ec2d1340eac3710fb526715106 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Sat, 21 May 2016 20:11:39 +0100 Subject: Do not consider iurt is no longer running when failing to ssh --- ulri | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ulri') diff --git a/ulri b/ulri index f632134..8f6ae1d 100755 --- a/ulri +++ b/ulri @@ -362,7 +362,8 @@ foreach my $prefix (keys %pkg_tree) { my $proc_state; if (!$fail) { - chomp($proc_state = sout($remote, "ps h -o state $pid")); + # Need to differenciate process not running with failure to ssh + chomp($proc_state = sout($remote, "ps h -o state $pid || echo NOT_RUNNING")); } my $seconds = time()-$time; @@ -370,7 +371,7 @@ foreach my $prefix (keys %pkg_tree) { # Reasons for failure my $timeout = $seconds > $config->{faildelay}; my $zombie = $proc_state eq 'Z'; - my $ended = !$proc_state; + my $ended = $proc_state eq 'NOT_RUNNING'; unless ($success || $later || $fail || $timeout || $zombie || $ended) { next bot; -- cgit v1.2.1