summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2017-10-25 12:12:12 +0200
committerCorentin LABBE <clabbe@baylibre.com>2017-10-25 12:12:24 +0200
commit49d59f4fa7b6f6dc99bbb56e30c94b5ae692f2f7 (patch)
tree0951e0971c12624aa1f807a56fe586b6950a8c65 /scripts
parentee8ef7b266fe45f2f2bc3ea6a8759e012b021e40 (diff)
Move master files in lava-master
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start.sh37
-rwxr-xr-xscripts/stop.sh10
2 files changed, 0 insertions, 47 deletions
diff --git a/scripts/start.sh b/scripts/start.sh
deleted file mode 100755
index f4cc4eb..0000000
--- a/scripts/start.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-postgres-ready () {
- echo "Waiting for lavaserver database to be active"
- while (( $(ps -ef | grep -v grep | grep postgres | grep lavaserver | wc -l) == 0 ))
- do
- echo -n "."
- sleep 1
- done
- echo
- echo "[ ok ] LAVA server ready"
-}
-
-start () {
- echo "Starting $1"
- if (( $(ps -ef | grep -v grep | grep -v add_device | grep -v dispatcher-config | grep "$1" | wc -l) > 0 ))
- then
- echo "$1 appears to be running"
- else
- service "$1" start
- fi
-}
-
-#remove lava-pid files incase the image is stored without first stopping the services
-rm -f /var/run/lava-*.pid 2> /dev/null
-
-start postgresql
-start apache2
-start lava-server
-start lava-master
-start lava-coordinator
-start lava-slave
-start lava-server-gunicorn
-start tftpd-hpa
-
-postgres-ready
-service apache2 reload #added after the website not running a few times on boot
diff --git a/scripts/stop.sh b/scripts/stop.sh
deleted file mode 100755
index ccf30fb..0000000
--- a/scripts/stop.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-service lava-master stop
-service lava-slave stop
-service lava-server stop
-service lava-coordinator stop
-service lava-server-gunicorn stop
-service apache2 stop
-service postgresql stop
-service tftpd-hpa stop