Debian Codegraph @

debian/tests/gmetad

raw
1 #!/bin/bash
2 #---------------
3 # Testing gmetad
4 #---------------
5 MACHINE=127.0.0.1
6 PORT=8651
7
8 # listen to port
9 netcat -z ${MACHINE} ${PORT}
10 if [ $? -eq 0 ]
11 then
12 echo "OK"
13 exit 0
14 else
15 echo "ERROR: gmetad not listening" >&1
16 exit 1
17 fi