1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/tests/test_check_tcp_ports.sh
Martin Schwenke 014a1eb540 ctdb-scripts: CTDB_BASE must be set when including functions file
Also fix an unused test to set CTDB_BASE.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Jose A. Rivera <jarrpa@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2015-09-15 08:56:21 +02:00

19 lines
290 B
Bash
Executable File

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