Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / test / launch.sh @ 53f980c2

History | View | Annotate | Download (332 Bytes)

1 327eb666 Giorgos Korfiatis
#!/bin/bash
2 327eb666 Giorgos Korfiatis
3 327eb666 Giorgos Korfiatis
d=`dirname $0`
4 327eb666 Giorgos Korfiatis
export SYNNEFO_SETTINGS_DIR=$d/settings
5 327eb666 Giorgos Korfiatis
6 327eb666 Giorgos Korfiatis
HOST=127.0.0.1
7 327eb666 Giorgos Korfiatis
P=8008
8 327eb666 Giorgos Korfiatis
9 327eb666 Giorgos Korfiatis
pkill -f "runserver"
10 327eb666 Giorgos Korfiatis
11 327eb666 Giorgos Korfiatis
snf-manage runserver $HOST:$P &> server.$P.out &
12 327eb666 Giorgos Korfiatis
13 327eb666 Giorgos Korfiatis
while true; do
14 327eb666 Giorgos Korfiatis
    nc -z -w 4 $HOST $P
15 327eb666 Giorgos Korfiatis
    OUT=$?
16 327eb666 Giorgos Korfiatis
    if [ $OUT -eq 0 ]
17 327eb666 Giorgos Korfiatis
    then break
18 327eb666 Giorgos Korfiatis
    else sleep 0.1
19 327eb666 Giorgos Korfiatis
    fi
20 327eb666 Giorgos Korfiatis
done
21 327eb666 Giorgos Korfiatis
22 327eb666 Giorgos Korfiatis
snf-manage astakos-init --load-service-resources