repo.or.cz
/
Samba.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
unix_msg: Lift sockaddr_un handling from unix_dgram_init
[Samba.git]
/
ctdb
/
tests
/
test_check_tcp_ports.sh
blob
e439b6d3744b87d0a50ed64deeb87894932de62e
1
#!/bin/sh
2
3
DIRNAME
=
$
(
dirname
$0
)
4
5
.
${DIRNAME}
/
..
/
config
/
functions
6
7
SERVICE
=
"test-service"
8
9
PORTS
=
"$@"
10
11
if
[
"x
${PORTS}
"
=
"x"
] ;
then
12
PORTS
=
139
13
fi
14
15
ctdb_check_tcp_ports
${SERVICE} ${PORTS}
16
17
echo
"Test for service '
${SERVICE}
' on tcp ports
${PORTS}
succeeded!"