summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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