1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

add a simple test script to test ctdb_check_tcp_ports

Michael

(This used to be ctdb commit 2634f1bd216ce18f061a282a53314cb1650dbd05)
This commit is contained in:
Michael Adam 2009-01-30 18:30:25 +01:00
parent 77bd2b6c91
commit b183acf467

View File

@ -0,0 +1,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!"