[Qa-jenkins-scm] [jenkins.debian.net] 04/04: reproducible Debian: run in an endless loop (and allow killing it to loop sooner)

Holger Levsen holger at layer-acht.org
Thu Apr 27 10:44:59 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 cb7ab196f7e7a7af68c2e2eb90078a10ed2a8a5e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Thu Apr 27 12:43:53 2017 +0200

    reproducible Debian: run in an endless loop (and allow killing it to loop sooner)
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 bin/reproducible_build_service.sh | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
index d9df379..390db7e 100755
--- a/bin/reproducible_build_service.sh
+++ b/bin/reproducible_build_service.sh
@@ -241,11 +241,20 @@ startup_workers() {
 }
 
 #
-# main
+# main, keep running forever…
 #
-startup_workers
-# keep running forever…
-while true ; do sleep 1337m ; done
+while true ; do
+	#
+	# this is all we do
+	#
+	startup_workers
+	#
+	# now sleep, but allow wakeup calls
+	#
+	set +e
+	sleep 1337m
+	set -e
+done
 
 # FIXME: TODO left for _service.sh:
 # * link to console.log in rbuild.log is broken

-- 
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