[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible Debian: try systemctl twice, but only output and thus log the 2nd attempt, as this is used for counting local problems

Holger Levsen holger at layer-acht.org
Mon Jun 12 19:56:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 8f2a892db573f5f0e79b54ea378d8431e9e04ac0
Author: Holger Levsen <holger at layer-acht.org>
Date:   Mon Jun 12 21:55:54 2017 +0200

    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 at layer-acht.org>
---
 bin/reproducible_worker.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_worker.sh b/bin/reproducible_worker.sh
index c0a9d83..99b597a 100755
--- a/bin/reproducible_worker.sh
+++ b/bin/reproducible_worker.sh
@@ -30,7 +30,8 @@ while true ; do
 		break
 	fi
 	SERVICE="reproducible_build at 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list