Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / test / launch.sh @ b8985188

History | View | Annotate | Download (282 Bytes)

1
#!/bin/bash
2

    
3
d=`dirname $0`
4
export SYNNEFO_SETTINGS_DIR=$d/settings
5

    
6
HOST=127.0.0.1
7
P=8000
8

    
9
pkill -f "runserver"
10

    
11
snf-manage runserver $HOST:$P &> server.$P.out &
12

    
13
while true; do
14
    nc -z -w 4 $HOST $P
15
    OUT=$?
16
    if [ $OUT -eq 0 ]
17
    then break
18
    else sleep 0.1
19
    fi
20
done