They will be clobbered by the redirect anyway.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Michael Adam <obnox@samba.org>
# Record connections to our public IPs in a temporary file
_my_connections="${tickledir}/${_port}.connections"
# Record connections to our public IPs in a temporary file
_my_connections="${tickledir}/${_port}.connections"
- rm -f "$_my_connections"
netstat -tn |
awk -v destpat="^${_ipschoice}:${_port}\$" \
'$1 == "tcp" && $6 == "ESTABLISHED" && $4 ~ destpat {print $5, $4}' |
netstat -tn |
awk -v destpat="^${_ipschoice}:${_port}\$" \
'$1 == "tcp" && $6 == "ESTABLISHED" && $4 ~ destpat {print $5, $4}' |
# Record our current tickles in a temporary file
_my_tickles="${tickledir}/${_port}.tickles"
# Record our current tickles in a temporary file
_my_tickles="${tickledir}/${_port}.tickles"
for _i in $_ips ; do
ctdb -X gettickles $_i $_port |
awk -F'|' 'NR > 1 { printf "%s:%s %s:%s\n", $2, $3, $4, $5 }'
for _i in $_ips ; do
ctdb -X gettickles $_i $_port |
awk -F'|' 'NR > 1 { printf "%s:%s %s:%s\n", $2, $3, $4, $5 }'