1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/test_check_tcp_ports.sh
Michael Adam b183acf467 add a simple test script to test ctdb_check_tcp_ports
Michael

(This used to be ctdb commit 2634f1bd216ce18f061a282a53314cb1650dbd05)
2009-01-30 22:49:17 +01:00

18 lines
263 B
Bash
Executable File

#!/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!"