summaryrefslogtreecommitdiff
path: root/ctdb/tests/test_check_tcp_ports.sh
blob: 1272d885c59ad3283243e16ff99e916fec6f1e61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

DIRNAME=$(dirname $0)

CTDB_BASE="${DIRNAME}/../config"
. "${CTDB_BASE}/functions"

SERVICE="test-service"

PORTS="$@"

if [ "x${PORTS}" = "x" ] ; then
	PORTS=139
fi

ctdb_check_tcp_ports ${SERVICE} ${PORTS}

echo "Test for service '${SERVICE}' on tcp ports ${PORTS} succeeded!"