Straightforward way to shut down graphical display on Fedora 7 from command line
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
The problem is that if I switch runlevel, some services go offline until I restart them. This comes with a disruption of the service (and lost sessions, uploads, etc etc). I guess the real catch is if I can kill out graphics without changing runlevel in Fedora 7?
Hmmm. Fedora is different
Try this (as root) /sbin/service --status-all
Look throught the list and identify whatever it is that refers to X
Then /sbin/service servicename {start|stop|status|reload|restart}
eg /sbin/service dm stop
(I am guessing here!)
Hmmm. Fedora is different
Try this (as root) /sbin/service --status-all
Look throught the list and identify whatever it is that refers to X
Then /sbin/service servicename {start|stop|status|reload|restart}
eg /sbin/service dm stop
(I am guessing here!)
I've since found a not-too-elegant, but simple way to shut it down:
1) Grep for the process "/usr/sbin/gdm-binary -nodaemon"
2) When found, simply kill the process. Everything graphics related will die instantly. It's not enough to just kill Xorg, because it will be respawned immediately - but if you kill this gdm-binary, then all graphics will go away.
Well... it "works for me", but I'm long way from being sure it works for anyone else. At least problem solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.