View | Details | Raw Unified
Collapse All | Expand All

(-) t_cltsrv-down.sh.orig (-2 / +6 lines)
 Lines 38-48    Link Here 
    fi
    fi
    ;;
    ;;
esac
esac
downscript="${srcdir}/t_cltsrv-down.sh"
test -x $downscript || chmod +x $downscript || { echo >&2 "$downscript is not executable, failing." ; exit 1 ; }
echo "the following test will take about two minutes..." >&2
echo "the following test will take about two minutes..." >&2
set +e
set +e
(
(
./openvpn --cd "${srcdir}" ${addopts} --down 'echo "srv:${signal}" >&3 ; : #' --tls-exit --ping-exit 180 --config sample-config-files/loopback-server &
./openvpn --script-security 2 --cd "${srcdir}" ${addopts} --setenv role srv --down "$downscript" --tls-exit --ping-exit 180 --config sample-config-files/loopback-server &
./openvpn --cd "${srcdir}" ${addopts} --down 'echo "clt:${signal}" >&3 ; : #' --tls-exit --ping-exit 180 --config sample-config-files/loopback-client
./openvpn --script-security 2 --cd "${srcdir}" ${addopts} --setenv role clt --down "$downscript" --tls-exit --ping-exit 180 --config sample-config-files/loopback-client
) 3>log.$$.signal >log.$$ 2>&1
) 3>log.$$.signal >log.$$ 2>&1
e1=$?
e1=$?
wait $!
wait $!
Line 0    Link Here 
#! /bin/sh
echo "${role}:${signal}" >&3