From owner-freebsd-rc@FreeBSD.ORG Tue Sep 28 12:07:59 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 2BE1C16A4CE for ; Tue, 28 Sep 2004 12:07:59 +0000 (GMT) Received: from telecom.net.et (sparrow.telecom.net.et [213.55.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4923643D5E for ; Tue, 28 Sep 2004 12:07:52 +0000 (GMT) (envelope-from mtm@identd.net) Received: from [213.55.68.122] (HELO rogue.acs.lan) by telecom.net.et (CommuniGate Pro SMTP 3.4.8) with ESMTP id 58461413; Tue, 28 Sep 2004 15:00:47 +0300 Received: by rogue.acs.lan (Postfix, from userid 1000) id 109A0B886; Tue, 28 Sep 2004 15:07:53 +0300 (EAT) Date: Tue, 28 Sep 2004 15:07:53 +0300 From: Mike Makonnen To: Jose M Rodriguez Message-ID: <20040928120752.GA1992@rogue.acs.lan> References: <20040928081416.GA1372@rogue.acs.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD/6.0-CURRENT (i386) 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 12:07:59 -0000 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. > > I've got problems with this since /usr/X11R6/etc/rc.d/gdm.sh hit the > tree. With > /etc/rc.d/xdm is even worse. > > rcGN really lacks BEFORE tags that isolates a 'near last' stage where just > that things with gettys race problems lives. ?Why to Solve? > > - By a new 'syncpoint' before LOGIN and moving to this all those things > that are run at LOGIN and _not_ related to gettys or similar. > > - By a a new 'syncpoint' after login (LAST?) that make possible put things > for run really as the very last of rcorder. > > After renaming xdm to 0xdm, my race problems gone away, but I thing this > must be take in account for rcNG developpment. >From what I gather your problem is that you can't position the xdm script to win the race with getty. Correct? If so, you're going about it the wrong way. You shouldn't be looking at strategies to win the race. Rather, you should be looking at ways to eliminate the race itself. 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. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !