File: wait_started.sh

package info (click to toggle)
yaws 1.88-2%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,544 kB
  • ctags: 5,440
  • sloc: erlang: 27,321; sh: 3,823; ansic: 1,264; makefile: 874; lisp: 79; xml: 12; python: 3
file content (19 lines) | stat: -rwxr-xr-x 322 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

. ../support/include.sh


i=0
while :; do
    sleep 1
    ${YTOP}/bin/yaws --id testid --status 2>&1 > /dev/null
    if [ $? = 0 ]; then
        echo "yaws started "
        exit 0
    fi
    i=$(($i + 1))
    if [ $i = 10 ]; then
        echo "No status reply - yaws is not started"
        exit 1
    fi
done