Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 1997 01:35:46 -0700 (PDT)
From:      Dmitry Kohmanyuk <dk@dog.farm.org>
To:        dawes@rf900.physics.usyd.edu.au (David Dawes)
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: xdm in /usr/X11R6/etc/rc.d problem
Message-ID:  <199705010835.BAA10893@dog.farm.org>

next in thread | raw e-mail | index | archive | help
In article <19970428070651.14651@rf900.physics.usyd.edu.au> you wrote:
> On Sun, Apr 27, 1997 at 08:34:20PM +0200, Peter Korsten wrote:
> >For the normal daemons, this works OK, but putting xdm in the X11
> >rc directory turned out to be a Bad Idea. What seems to happen, is
> >that xdm initializes and starts X, but after that, the vty's are
> >initilized.

it doesn't have too.  see below.

[...]
> >I'm almost positive that this is a known issue, but is there a way
> >to get around it?

> Delay the starting of xdm.  Here's what I have in my /usr/X11R6/etc/rc.d/xdm
> file:

> #!/bin/sh
> # Make sure root can start xconsole when xdm starts
> chown root /dev/console
> if [ -f /usr/X11R6/bin/xdm -a -f /usr/local/etc/xdm/xdm-config ]; then
> 	echo -n ' xdm'
> 	(sleep 10; /usr/X11R6/bin/xdm -config /usr/local/etc/xdm/xdm-config)&
> fi

hmm, I always do it this way:

- edit xdm/Xservers - remove local X server
- make sure xdm/Xaccess has localhost (or * if you don't care)
- edit /etc/ttys - run X server from there (as a bonus, init would stop
  restarting it if it fails)
ttyv8   "/usr/X11/bin/X ttyv8 -logo -once -query localhost" xterm on secure
- run xdm whenever you want, it would just sit quietly waiting for
  init launching gettys and X server at the same time...

--
old unix hackers don't die, they just turn into zombie processes -- net.someone



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705010835.BAA10893>