From owner-freebsd-rc@FreeBSD.ORG Tue Sep 28 14:18:21 2004 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C30816A4CE for ; Tue, 28 Sep 2004 14:18:21 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12E1143D5A for ; Tue, 28 Sep 2004 14:18:20 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CCIo2-00019h-00 Tue, 28 Sep 2004 16:18:14 +0200 Received: from [212.106.236.118] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CCIo1-00019V-00 Tue, 28 Sep 2004 16:18:14 +0200 Received: from localhost.redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id i8SEIGCX044037; Tue, 28 Sep 2004 16:18:17 +0200 (CEST) (envelope-from josemi@freebsd.jazztel.es) Date: Tue, 28 Sep 2004 16:18:15 +0200 To: "Mike Makonnen" References: <20040928081416.GA1372@rogue.acs.lan> <20040928120752.GA1992@rogue.acs.lan> From: "Jose M Rodriguez" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20040928120752.GA1992@rogue.acs.lan> User-Agent: Opera M2/7.54 (FreeBSD, build 751) X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.27.0.11; VDF 6.27.0.70 (host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: freebsd-rc@freebsd.org Subject: Re: rcNG problems on RELENG_5 X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to /etc/rc.d design and implementation. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2004 14:18:21 -0000 On Tue, 28 Sep 2004 15:07:53 +0300, Mike Makonnen wrote: > On Tue, Sep 28, 2004 at 11:14:10AM +0200, Jose M Rodriguez wrote: >> On Tue, 28 Sep 2004 11:14:16 +0300, Mike Makonnen >> wrote: >> >> There is a last process in the rc boot: init that launch gettys via >> /etc/ttys. >> xdm really needs gettys running when it comes up, this is a race >> condiction >> between xdm an init. >> ... > > The first step is to understand > why xdm depends on init starting the gettys. For example I use gdm and > it's > started from a startup script. My /etc/ttys has ttyv8, the tty on which > gdm > starts, turned off. So, how does init starting the gettys on the other > terminals > affect X? It seems to me that the problem really isn't > with init's starting of gettys but some other side-effect of that. > > In short, we should understand EXACTLY what the problem is before going > off and trying to solve it. > > Cheers. First, I resolve it now renaming xdm 0xdm. Now, I can won the race. The problem can also be present in your setup. Is related to XServer using a dynamic tty alloc on FreeBSD by default. If xdm/kdm/gdm Xserver is up before the gettys, it gets /dev/ttyv1, not /dev/ttyv8. I'm looking now how to make Xserver tty alloc static, but my free time is limited. In any way, I think that the developpment of rcNG must take this on account. It's no other method that lex order to put a script at the end of rcorder. -- josemi -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/