Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (332 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=8008
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
21

    
22
snf-manage astakos-init --load-service-resources