summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-09-18 18:11:06 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-09-18 18:11:06 +0100
commit880bbebd3d3529cece81925db5be860662ae0e80 (patch)
treee7ec43949d1e83b3b5ea5f32664a6ff10f4e22ad /start
downloadciat-slave-880bbebd3d3529cece81925db5be860662ae0e80.tar.gz
Initial commit
Install and run a buildbot slave in a virtualenv
Diffstat (limited to 'start')
-rwxr-xr-xstart12
1 files changed, 12 insertions, 0 deletions
diff --git a/start b/start
new file mode 100755
index 0000000..95cf279
--- /dev/null
+++ b/start
@@ -0,0 +1,12 @@
+#!/bin/bash
+set -ex
+
+teardown () {
+ echo "Stopping Slave"
+ cd ../orchenv-slave
+ ./bin/buildslave stop slave
+}
+
+trap "teardown" SIGINT SIGTERM
+cd slavenv
+./bin/buildslave start SLAVENAME