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

DIRNAME=$(dirname $0)

. ${DIRNAME}/../config/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!"