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:
parent
77bd2b6c91
commit
b183acf467
17
ctdb/tests/test_check_tcp_ports.sh
Executable file
17
ctdb/tests/test_check_tcp_ports.sh
Executable 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!"
|
Loading…
x
Reference in New Issue
Block a user