Re: [ILUG] Just a quickie

From: lbedford at domain wbtsystems.com
Date: Tue 16 May 2000 - 15:34:03 IST


On Tue, May 16, 2000 at 03:25:48PM +0100, Kenn Humborg wrote:
> > I tend to install machines to init level 3, and then telinit 5 when
> > I'm sure X is happy (and edit /etc/inittab obviously)
>
> I've often wondered about this: Why is the X display manager
> (xdm, kdm, gdm, whatever) run from inittab, rather than from a
> rc.d/init.d script?
I guess so that it can be re-run if it crashes, or is killed?

Debian does it with an rc script...
>
> I've made a init script for X on my RH6.2 box and it works fine.
> (And doesn't re-run rc.local when I want to start/stop X.)
>
It's also kind of a historical thing.. at least with that old
digital Unix from VAX era that I can't remember the name of,
it started X in the inittab (on the decstations I installed).
It means you don't have to have a suid wrapper, or root access.

> Some clues: don't start an agent if the environment
> variable SSH_AGENT_SOCK exists. Starting in .bash_profile
> and killing in .bash_logout doesn't work because
> .bash_logout won't always be run (e.g. logging out of GNOME).
I'm sure GNOME can have a logout script run? Or be hacked to..

L.

-- 
Liam Bedford                  | What we've got here is, failure to
System Administrator          | communicate. Some man you just can't
WBT Systems, Block 2,         | reach... so you get what we had
Harcourt Centre, Harcourt St. | here last week, which is the way
01-4170100                    | he wants it.


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:10 GMT