Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-11-27 16:49:04 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-11-27 16:49:04 +0100
commita23507bf206c2dcfcb0f65bc26ab24d2e0bb2999 (patch)
tree4b5ec0b628c5ffadabd6e2844b73c5f503c82208
parent8c984e6d818e097dd09a9974343dc52de99386b8 (diff)
added a simpler graceful stop version
-rwxr-xr-xlib/load-configuration7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index b6756c1..08ca4bf 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -28,6 +28,13 @@ if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then
fi
else
i_am_the_master=false
+ if [ -f '/tmp/do-not-run-build-slave' ]; then
+ >&2 echo 'build slave is on halt.'
+ >&2 echo 'I will stop now.'
+ # non-zero exit code to signal systemctl that the process should not
+ # be restarted automatically
+ exit 1
+ fi
fi
# dirty hack to get this stuff debugable from a bash