Subject: Re: misc/5115: xdm doesn't run correctly when called from /etc/rc
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
From: Christofer C. Bell <cbell@ukans.edu>
List: netbsd-bugs
Date: 03/04/1998 15:46:58
Wolfgang Rupprecht wrote:
> 
> haszlaki@uaccess.net writes:
> >       Boot NetBSD with a recent /etc/rc, xdm enabled, and a couple things
> >     in /etc/rc.local (optional).  Since xdm manages to get running
> >     before init spawns any gettys it doesn't always pick an empty one.
> >       This leads to tons of fun when xdm and getty stomp on each other.
> 
> There is a second related problem I've just noticed with xdm sitting
> on the wrong pty every once in a while.

> The workarounds are:
> 
>     1) run ssh from inetd
>     2) turn off getty on ttyv1

I modified the xdm section of /etc/rc to read:

if checkyesno xdm; then
        echo -n ' xdm';                 ( sleep 5 && xdm $xdm_flags ) &
fi

This allows me to turn xdm off and on using the /etc/rc.conf mechanism
(as intended) and still getty to spawn logins on ttyv0-7 (which I have
configured in /etc/ttys) with xdm running on ttyv8.  

--
Christofer C. Bell                      Information Systems Lead
Union Computing Services                email: cbell@ukans.edu
University of Kansas                    phone: 785-864-4893