Skip to content

Commit

Permalink
More debug for sigterm
Browse files Browse the repository at this point in the history
It's actually the vpnc-script which is failing:

 + '[' connect = connect ']'
+ ip link set dev oc-6352-tun0 up mtu 1434
Error: Device for nexthop is not up.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed May 1, 2020
1 parent 0688ce5 commit 21a6a79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/scripts/vpnc-script-detect-disconnect
Expand Up @@ -4,7 +4,9 @@
# For a real one, see http://www.infradead.org/openconnect/vpnc-script.html

if [ "$reason" = "connect" ]; then
ip link set dev "$TUNDEV" up mtu "$INTERNAL_IP4_MTU"
ip link show "$TUNDEV"
ip link set dev "$TUNDEV" up
ip link set dev "$TUNDEV" mtu "$INTERNAL_IP4_MTU"
ip addr add "$INTERNAL_IP4_ADDRESS/32" peer "$INTERNAL_IP4_ADDRESS" dev "$TUNDEV"
ip -6 addr add $INTERNAL_IP6_NETMASK dev $TUNDEV
rm -f ${DISCONNECT_FILE}
Expand Down
4 changes: 2 additions & 2 deletions tests/sigterm
Expand Up @@ -33,6 +33,8 @@ export DISCONNECT_FILE=disconnected-ok.$$.tmp

. `dirname $0`/common.sh

set -x

rm -f ${DISCONNECT_FILE}

if test -z "${IP}";then
Expand Down Expand Up @@ -123,8 +125,6 @@ ${CMDNS1} ping -c 3 ${VPNADDR}
test -f "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
rm -f "${CLIPID}"

set -x

sleep 5

if ! test -f ${DISCONNECT_FILE};then
Expand Down

0 comments on commit 21a6a79

Please sign in to comment.