Re: XDM Suddenly Doesn't Start on Boot

Glynn Clements <[email protected]> Tue, 17 Sep 2002 23:35:04 +0100
Newsgroups org.kernel.vger.linux-x11,org.kernel.vger.linux-admin
Message-ID <[email protected]>
Marshall Lake wrote:

> > > I start XDM from the last line in /etc/inittab:
> > > x:5:respawn:/etc/X11/prefdm -nodaemon
> 
> > By default, XDM logs any errors to /var/log/xdm-errors, although this
> > can be changed via the xdm-config file (typically either
> > /usr/lib/X11/xdm/xdm-config or /etc/X11/xdm/xdm-config).
> 
> Both /usr/lib/X11/xdm/xdm-config and /etc/X11/xdm/xdm-config contain a
> line pointing to /var/log/xdm-error.log but that file is empty.

Is the date stamp recent? If not, that would suggest that xdm isn't
getting run.

> > Does /etc/sysconfig/desktop exist? What does it contain?
> 
> That file doesn't exist.

The contents of that file determine which display manager is used (at
least, that's the case for RedHat 6.2; examine the /etc/X11/prefdm
script to confirm which file is actually used).

If the file doesn't exist, or it doesn't contain the right data, the
prefdm script looks for gdm, kdm an xdm, in that order, and uses the
first one which it finds. IOW, xdm will only be used if neither gdm
nor kdm can be found. If xdm can't be found either, prefdm will exit
without starting any display manager (and without displaying any error
message of its own).

Personally, I changed inittab to start xdm directly:

	x:5:respawn:/usr/X11R6/bin/xdm -nodaemon

BTW, just to check the obvious, inittab is configured to start in
runlevel 5:

	id:5:initdefault:

right?

-- 
Glynn Clements <[email protected]>