From 9f20c74c7cc4434b298c40f2786dbd9d54981bd8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 9 Dec 2015 12:35:48 +0100 Subject: reproducible: add new script, reproducible_cleanup_nodes.sh, to kill lonely build processes on all nodes --- bin/reproducible_slay.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 bin/reproducible_slay.sh (limited to 'bin/reproducible_slay.sh') diff --git a/bin/reproducible_slay.sh b/bin/reproducible_slay.sh new file mode 100755 index 00000000..922bea27 --- /dev/null +++ b/bin/reproducible_slay.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Copyright 2015 Holger Levsen +# released under the GPLv=2 + +set -e + +# usually called by /srv/jenkins/bin/reproducible_cleanup_nodes.sh +# this script just kills everyone… +sudo slay -clean 1111 +sudo slay -clean 2222 +sleep 2 +ps fax +# only slay jenkins on the build nodes… +if [ "$HOSTNAME" != "jenkins" ] ; then + sudo slay -clean jenkins +fi + -- cgit v1.2.3-54-g00ecf