git.samba.org
/
metze
/
ctdb
/
wip.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
pytdb: Make filename argument optional.
[metze/ctdb/wip.git]
/
tests
/
test_check_tcp_ports.sh
1
#!/bin/sh
2
3
DIRNAME=$(dirname $0)
4
5
. ${DIRNAME}/../config/functions
6
7
SERVICE="test-service"
8
9
PORTS="$@"
10
11
if [ "x${PORTS}" = "x" ] ; then
12
PORTS=139
13
fi
14
15
ctdb_check_tcp_ports ${SERVICE} ${PORTS}
16
17
echo "Test for service '${SERVICE}' on tcp ports ${PORTS} succeeded!"