From: Kenn Humborg (kenn at domain bluetree.ie)
Date: Tue 16 May 2000 - 15:26:01 IST
> 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
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.)
And on a related note, has anyone found the best place to
start an ssh-agent so that you get a new agent when:
o You log in on the console
o You telnet in
o You ssh in without forwarding the previous agent
o You log in via gdm/kdm/xdm
o You start an 'su -' session.
and have it die when the session exits (and don't start
one when you type startx).
First correct answer gets a pint.
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'd hate to have to stick checks all over the place (shell
startup scripts, xinit scripts, X display manager stuff).
That would be just *ugly*.
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:06:10 GMT