Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If I restart the Display Manager, e.g lightdm, will X be restarted as well ?

share|improve this question
3  
Try it: pgrep X, restart lightdm, pgrep X, compare. :) –  sr_ Apr 26 '12 at 10:22
add comment

1 Answer

up vote 4 down vote accepted

It depends on your configuration: you can have X-window Server started by itself and then the Display Manager process or Display Manager could start the X-window server.

I have X server started by kdm in OpenSuse 12.1:

kdm(4655)─┬─Xorg(4671)
          └─kdm(4698)───startkde(4800)─┬─gpg-agent(4877)
                                       ├─kwrapper4(4977)
                                       └─ssh-agent(4878) 

If you use Unix with Xorg and pstree you can check by:

pstree -p `ps -H -C Xorg -o ppid --no-header` 

or

ps -H -C Xorg -o ppid --no-header | xargs pstree -p
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.