summaryrefslogtreecommitdiff
path: root/lib/load-configuration
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2019-11-23 20:28:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2019-11-23 20:28:20 +0100
commit5352cdfeb125faa884a5ea63c401c6db49f3e887 (patch)
tree990117044960b7752c2c47798ab3e40cfd3065c1 /lib/load-configuration
parent3f232a376754faff6413e2ec22a9e89d06121763 (diff)
downloadbuilder-5352cdfeb125faa884a5ea63c401c6db49f3e887.tar.xz
removed all systemd tests
Diffstat (limited to 'lib/load-configuration')
-rwxr-xr-xlib/load-configuration15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/load-configuration b/lib/load-configuration
index 2a8f08c..b6756c1 100755
--- a/lib/load-configuration
+++ b/lib/load-configuration
@@ -28,21 +28,6 @@ if [ "$(hostname)" = 'buildmaster.archlinux32.org' ]; then
fi
else
i_am_the_master=false
-
- # abort early or kill switch for slave in service (gracefull stop)
- # is active. Remove the kill switch and return non-zero exit state,
- # effectively making systemd not restart the service
-
- SLAVE=$(whoami)
- if [ -f "/tmp/do-not-run-build-slave.$SLAVE" ]; then
- >&2 echo "Build slave stop switch is ative.. I'll stop now."
- # When the buildslave is on "stop-now",
- # - systemd 'Restart' expects non-zero exit code
- # - interactively run commands SHOULD get exit code 1, too
- # - remove the switch file, so we can start the service again
- [ -f "/tmp/do-not-run-build-slave.$SLAVE" ] && rm "/tmp/do-not-run-build-slave.$SLAVE"
- exit 1
- fi
fi
# dirty hack to get this stuff debugable from a bash