diff options
author | 2017-05-01 10:45:06 -0700 | |
---|---|---|
committer | 2017-05-01 10:45:06 -0700 | |
commit | 2e448945269ca28b644f587bf40afd9fe6c38583 (patch) | |
tree | 7205cf78be43d50648a1eb302529549471a58c98 /start.sh | |
parent | 47133ea0a35636cbd3601bbcd57f10fff32a6f9e (diff) |
Dockerfile: shuffle scripts, and add tftp support
Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Diffstat (limited to 'start.sh')
-rwxr-xr-x | start.sh | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/start.sh b/start.sh deleted file mode 100755 index 54de1f6..0000000 --- a/start.sh +++ /dev/null @@ -1,36 +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-slave -start lava-server-gunicorn -start tftpd-hpa - -postgres-ready -service apache2 reload #added after the website not running a few times on boot |