Starting and Stopping X.org without login manager (GDM, XDM, etc)

Dave Airlie airlied at gmail.com
Wed Oct 20 16:02:32 PDT 2004


> x:5:respawn:/bin/su - hydra -c 'PATH=$PATH:/usr/X11R6/bin startx'
> 
> i.e. I want X to start and execute application specified in .xinitrc
> under user "hydra".
> 
> I need respawn since if that app crashes, my X would be restarted,
> though I already tried "wait" and "once" action modifiers.
> 
> To stop my X I added K00XServer to my rc0.d and rc6.d, there I send
> TERM and then KILL singnals to my application which causes X to exit
> as well...
> However, a second later X magically restarted and my poweroff sequence
> is broken.. :(
> 

You might want to look at using the -once flag to the  Xserver..

Dave.



More information about the xorg mailing list