From owner-freebsd-ports@FreeBSD.ORG Fri Feb 24 16:51:07 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B0F16A420 for ; Fri, 24 Feb 2006 16:51:07 +0000 (GMT) (envelope-from subscriber@insignia.com) Received: from highland.isltd.insignia.com (highland.isltd.insignia.com [195.74.141.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id F06F543D45 for ; Fri, 24 Feb 2006 16:51:06 +0000 (GMT) (envelope-from subscriber@insignia.com) Received: from inchgower.internal.local (inchgower-e0.isltd.insignia.com [195.74.141.61]) by highland.isltd.insignia.com (8.12.6p3/8.12.6) with ESMTP id k1OGp57A079883 for ; Fri, 24 Feb 2006 16:51:05 GMT (envelope-from subscriber@insignia.com) Received: from exchange-uk.internal.local (exchange-uk [172.16.64.9]) by inchgower.internal.local (8.12.11/8.12.11) with ESMTP id k1OGp5pM045430 for ; Fri, 24 Feb 2006 16:51:05 GMT (envelope-from subscriber@insignia.com) Received: from dylan.internal.local ([172.16.64.69]) by exchange-uk.internal.local with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id DQZH50J5; Fri, 24 Feb 2006 16:51:05 -0000 From: Jim Hatfield To: freebsd-ports@freebsd.org Date: Fri, 24 Feb 2006 16:51:05 +0000 Organization: Insignia Solutions Message-ID: <2dduv1deii276sfekgmbqnqb64rllc3b4p@4ax.com> X-Mailer: Forte Agent 3.1/32.783 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 2.53 on 195.74.141.1 Subject: Pid file conflict running vtun in both client and server mode 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: Fri, 24 Feb 2006 16:51:07 -0000 I'm trying to link three sites together using vtun. Site A will be client to B and C. Site B will be server to A and client to C. Site C will be server to A and B. A is a Linux box, B and C are FreeBSD. The problem is site B. My rc.conf contains: >vtund_enable=3D"YES" >vtunclient_enable=3D"YES" >vtunclient_flags=3D"wycombe-fremont WWW.XXX.YYY.ZZZ" The server process starts OK, but as soon as the client starts it whines about the PID file already existing, and dies. It appears the path to the PID file is hard coded as /var/run/vtund.pid, so this is not surprising. And there does not seem to be a command-line or config-file option to change it, so how can I run two instances, short of modifying the Makefile.in, editing the variable which specifies the path, building and copying to, say, /usr/sbin/vtunclient? I note that if box A were FreeBSD I would have further problems since there doesn't seem to be the facility to run multiple clients, though I guess I could hack the startup scripts in /usr/local/etc/rc.d.