diff options
author | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 12:15:18 +0200 |
---|---|---|
committer | Corentin LABBE <clabbe@baylibre.com> | 2017-10-25 12:15:18 +0200 |
commit | 88baa3f2459a5d32150048745003f4987b964be2 (patch) | |
tree | 1c0d54b118d661f9076696d19370078a2442507a /lava-slave/scripts | |
parent | 49d59f4fa7b6f6dc99bbb56e30c94b5ae692f2f7 (diff) |
import lava-slave
Diffstat (limited to 'lava-slave/scripts')
-rwxr-xr-x | lava-slave/scripts/start.sh | 14 | ||||
-rwxr-xr-x | lava-slave/scripts/stop.sh | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/lava-slave/scripts/start.sh b/lava-slave/scripts/start.sh new file mode 100755 index 0000000..f442e8d --- /dev/null +++ b/lava-slave/scripts/start.sh @@ -0,0 +1,14 @@ +#!/bin/bash +# Set LAVA Master IP +if [[ -n "$LAVA_MASTER" ]]; then + sed -i -e "s/{LAVA_MASTER}/$LAVA_MASTER/g" /etc/lava-dispatcher/lava-slave +fi + +service tftpd-hpa start || exit 4 + +# FIXME lava-slave does not run if old pid is present +rm -f /var/run/lava-slave.pid +service lava-slave start || exit 5 + +# start an http file server for boot/transfer_overlay support +(cd /var/lib/lava/dispatcher; python -m SimpleHTTPServer 80) diff --git a/lava-slave/scripts/stop.sh b/lava-slave/scripts/stop.sh new file mode 100755 index 0000000..0f18456 --- /dev/null +++ b/lava-slave/scripts/stop.sh @@ -0,0 +1,3 @@ +#!/bin/bash +service tftpd-hpa stop +service lava-slave stop |