diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-27 16:49:04 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2019-11-27 16:49:04 +0100 |
commit | a23507bf206c2dcfcb0f65bc26ab24d2e0bb2999 (patch) | |
tree | 4b5ec0b628c5ffadabd6e2844b73c5f503c82208 /lib | |
parent | 8c984e6d818e097dd09a9974343dc52de99386b8 (diff) | |
download | builder-a23507bf206c2dcfcb0f65bc26ab24d2e0bb2999.tar.xz |
added a simpler graceful stop version
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/load-configuration | 7 |
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 |