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