From owner-freebsd-ports@FreeBSD.ORG Tue Aug 30 17:13:54 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id BE5B0106566B for ; Tue, 30 Aug 2011 17:13:53 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id CBDCC23CF4F for ; Tue, 30 Aug 2011 19:13:52 +0200 (CEST) Message-ID: <4E5D1A50.10406@FreeBSD.org> Date: Tue, 30 Aug 2011 19:13:52 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110805 Mnenhy/0.8.3 Thunderbird/3.1.12 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4E5D1288.9010104@quip.cz> In-Reply-To: <4E5D1288.9010104@quip.cz> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD Port: openvpn-2.2.1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 17:13:54 -0000 Am 30.08.2011 18:40, schrieb Miroslav Lachman: > Hi, > > I noticed a problem with rc script for openvpn-2.2.1 on recent FreeBSD > 8-STABLE (Aug 13 20:33:31 CEST 2011). > It failed to restart if I have the following in rc.conf > > openvpn_bp_office_if="tap bridge" > > > # service openvpn_bp_office restart > Stopping openvpn_bp_office. > Waiting for PIDS: 75580. > kldload: can't load if_bridge: File exists > /usr/local/etc/rc.d/openvpn_bp_office: WARNING: Could not load bridge > module. > /usr/local/etc/rc.d/openvpn_bp_office: WARNING: failed precmd routine > for openvpn_bp_office > > The problem is, that if_bridge.ko is already loaded, but the kldload > routine in rc script will not detect it, because if_bridge has not > debug.if_bridge_debug sysctl entry. (older version of rc script works > fine with kldstat -m if_bridge) > > So I have a question - why the rc script is not using required_modules > variable from /etc/rc.subr which is there exactly for this purpose? Miroslav, thanks for your required_modules suggestion. The script dates back to 2005, when required_modules didn't exist (it was merged to a stable version in August 2007). I have fixed the openvpn20 and openvpn ports. Revisions 2.2.1_1 and 2.0.9_2 (respectively) have the fix. Thanks for the report and suggestion! Best regards, Matthias