*BSD News Article 67200


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews1.nwnet.net!news.u.washington.edu!uw-beaver!uhog.mit.edu!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: xdm causing getty repeating too quickly?
Date: 29 Apr 1996 22:07:58 GMT
Organization: Private FreeBSD site, Dresden
Lines: 37
Message-ID: <4m3eju$3db@uriah.heep.sax.de>
References: <4lug3j$jhn@linet06.li.net> <4m0jk2$4gg@linet06.li.net>
  <31841162.41C67EA6@servtech.com>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6

Shawn Carey <smc@servtech.com> writes:

>John W. Carbone wrote:

>> ttyv3   "/usr/X11R6/bin/xdm -nodeamon"  xterm   on  secure

>xdm wants "-nodaemon".  You need to transpose the 'e' and 'a'.

All this starting xdm via /etc/ttys seems to be ugly.  It's been a
crock to work around some other problem, but IMNSHO, you're better off
starting it from /etc/rc.local instead.

Simply run it there without any flags, so it properly daemonizes
itself.  If xdm is the last command in your rc.local, perhaps add a
``sleep 1'' after it, so it's got some time to change its session
before the rc shell terminates (so it doesn't get accidentally
killed).  It's always a good idea to specify the VTY where the Xserver
should be started on in your /usr/X11R6/lib/X11/xdm/Xservers file.
Mine looks like:

# some commentary
:0 local /usr/X11R6/bin/X vt08

Apart from this, it should work fine.

Once you've told your xdm to no longer respawn a new local Xserver (by
typing Control-R in the login window), you have to send it a SIGHUP to
restart the server again.  Otherwise, xdm remains running in the
background and listening to network (XDMCP) requests, but doesn't try
to start a local server again.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)