summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-27 12:43:53 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-27 12:43:53 +0200
commitcb7ab196f7e7a7af68c2e2eb90078a10ed2a8a5e (patch)
treeff6b97733983d635e423420075a93811def6b52b /bin
parentf0ffe1e2a6df2fb87f9b22f8599f05fac37a1472 (diff)
downloadjenkins.debian.net-cb7ab196f7e7a7af68c2e2eb90078a10ed2a8a5e.tar.xz
reproducible Debian: run in an endless loop (and allow killing it to loop sooner)
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build_service.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/bin/reproducible_build_service.sh b/bin/reproducible_build_service.sh
index d9df379e..390db7e3 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