[vserver] TAP-interfaces won't shutdown properly.

From: Josef Johansson <josef_at_ilait.se>
Date: Thu 12 May 2011 - 11:14:38 BST
Message-ID: <d011c883-4bd4-4cf8-8b7c-ec90c80818b5@zimbra-mailbox1-1>

Hi,

I had a problem with TAP-interfaces not shutting down properly on debian 6.0.

The cause for this was that the --tap argument did not get pushed to the tunctl command.

I post the solution to the problem below.

--- /usr/lib/util-vserver/vserver.functions.old 2011-05-12 10:12:11.000000000 +0000
+++ /usr/lib/util-vserver/vserver.functions 2011-05-12 10:09:32.000000000 +0000
@@ -751,7 +751,11 @@ function disableInterfaces
             IP_ADDR_FLUSH) ;;
             IP_LINK) ;; ## Ignore the link-down command for now
             IP_ROUTE) $_IP route del "$@";;
- TUNCTL) $_TUNCTL --~persist "$1";;
+ TUNCTL)
+ local dev="$1"
+ shift
+ $_TUNCTL --~persist "$@" "$dev"
+ ;;
             *) echo "Unknown interface-command type '$type'" >&2; false;;
         esac
     done

Regards
Josef
Received on Thu May 12 11:14:50 2011

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 12 May 2011 - 11:14:51 BST by hypermail 2.1.8