index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-10-29 07:43:48 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-29 07:43:48 +0100 |
commit | f015c817f3e7c300b8eb83546b05a8d2e4993af5 (patch) | |
tree | be8cf37e473bde461323726be899ff980166d4e3 /lib | |
parent | 7965fc949fb2994d2646c58aa640e5a1dae62aba (diff) |
-rwxr-xr-x | lib/load-configuration | 10 |
diff --git a/lib/load-configuration b/lib/load-configuration index f20dc2d..05ec7d0 100755 --- a/lib/load-configuration +++ b/lib/load-configuration @@ -16,7 +16,15 @@ if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then [ -f '/tmp/do-not-run-build-master' ]; then >&2 echo 'mysqld is not running or build master is on halt' >&2 echo 'I will abort - whatever you try to do would probably fail anyway.' - exit 1 + # When the buildmaster is on halt, + # - systemd MUST NOT hickup - e.g. exit code 0, + # - connecting slaves MUST get exit code 1 and + # - interactively run commands SHOULD get exit code 1, too + if tty -s && [ -z "${SSH_ORIGINAL_COMMAND}" ]; then + exit 1 + else + exit 0 + fi fi else i_am_the_master=false |