diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-12 21:55:54 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-12 21:55:54 +0200 |
commit | 8f2a892db573f5f0e79b54ea378d8431e9e04ac0 (patch) | |
tree | a1d68c2c234f981d4416a65265bd4462523450f1 | |
parent | 0c72a564d8041be35cfa307fc5441509a7d554a6 (diff) | |
download | jenkins.debian.net-8f2a892db573f5f0e79b54ea378d8431e9e04ac0.tar.xz |
reproducible Debian: try systemctl twice, but only output and thus log the 2nd attempt, as this is used for counting local problems
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | bin/reproducible_worker.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/reproducible_worker.sh b/bin/reproducible_worker.sh index c0a9d83e..99b597ae 100755 --- a/bin/reproducible_worker.sh +++ b/bin/reproducible_worker.sh @@ -30,7 +30,8 @@ while true ; do break fi SERVICE="reproducible_build@startup.service" - RUNNING=$(systemctl show $SERVICE|grep ^SubState|cut -d "=" -f2) + # try systemctl twice, but only output and thus log the 2nd attempt… + RUNNING=$(systemctl show $SERVICE 2>/dev/null |grep ^SubState|cut -d "=" -f2) if [ "$RUNNING" != "running" ] ; then # sometimes systemctl requests time out… handle that gracefully sleep 23 |