Fedora Linux Support Community & Resources Center
  #1  
Old 21st December 2010, 01:19 AM
theozz Offline
Registered User
 
Join Date: Dec 2010
Posts: 2
linuxredhatfirefox
init 3 doesn't kill X

Ok, I'm a little perplexed by this one and maybe its just me, but I can't find much on it.

I'm running Fedora 14 x86_64 on a couple of different machines. In some instances X doesn't shut down when running init 3.

Has anyone else experienced this behavior?
Reply With Quote
  #2  
Old 21st December 2010, 01:49 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,935
linuxfedorafirefox
Re: init 3 doesn't kill X

Try "telinit 3" and not "init 3".

Or maybe I'm missing your point. Are you setting the ru-level in inittab ?
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #3  
Old 21st December 2010, 01:50 AM
theozz Offline
Registered User
 
Join Date: Dec 2010
Posts: 2
linuxredhatfirefox
Re: init 3 doesn't kill X

Nope, I should have mentioned it earlier, but no dice on telinit either

No real point, I just sometimes like to go to runlevel 3 from runlevel 5 and I've never had a problem like this. I want to keep the default at 5 so modifying inittab won't help me here
Reply With Quote
  #4  
Old 21st December 2010, 02:45 AM
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,935
linuxfedorafirefox
Re: init 3 doesn't kill X

I thinkk this is a problem with the 'initscripts' package. X service is started from /etc/init/prefdm.conf, but I don't think there is a way to stop the X11 service reliably once started.

You should report at bugzilla.redhat.com
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #5  
Old 21st December 2010, 02:46 AM
Breeze Offline
Registered User
 
Join Date: Nov 2010
Posts: 68
linuxfirefox
Re: init 3 doesn't kill X

I have the same problem on my fedora 14,can't quit X by /etc/init'd.
Reply With Quote
  #6  
Old 21st December 2010, 06:09 AM
sonoran Offline
Registered User
 
Join Date: May 2005
Location: Sonoran Desert
Posts: 2,397
linuxfirefox
Re: init 3 doesn't kill X

In fedora 14 telinit is a link to init. If you read the comments in /etc/inittab you might find out how to change runlevels using upstart, but I gave up. Considering that upstart will be deprecated in F15 in favor of systemd, messing with upstart seemed a waste of time.

There was some discussion in this thread: http://forums.fedoraforum.org/showthread.php?t=255432

Last edited by sonoran; 21st December 2010 at 06:11 AM.
Reply With Quote
  #7  
Old 21st December 2010, 04:23 PM
mk27 Offline
Registered User
 
Join Date: Dec 2008
Posts: 89
linuxfedorafirefox
Re: init 3 doesn't kill X

Quote:
Originally Posted by theozz View Post
Ok, I'm a little perplexed by this one and maybe its just me, but I can't find much on it.

I'm running Fedora 14 x86_64 on a couple of different machines. In some instances X doesn't shut down when running init 3.

Has anyone else experienced this behavior?
I have one new F14 32-bit install, and I was kind of pleasantly surprised that it seems to obey traditional runlevel stuff as my first hassle with new installs is always getting it to stop booting into the GUI. I haven't found one that won't yet. When I do, I'll ditch that distro, but I think it is very unlikely as a primary use of linux is on servers where no GUI is installed at all, so nothing essential can depend on such and the people in charge know that.

Anyway, here's what worked for me: in /etc/inittab you will find a line like this

Code:
id:5:initdefault
Change the 5 to a 3. Reboot. You should get a text console login.
Reply With Quote
  #8  
Old 21st December 2010, 05:26 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,870
linuxfedorafirefox
Re: init 3 doesn't kill X

You can try the following as root:
Code:
killall gdm-binary
This should kill the gdm X manager process, which is supposed to terminate any X server it manages.

I don't offhand know the KDE manager, but I think it has "kdm" in the
name. I'm not sure it would be kdm-binary - use ps to be sure.
Reply With Quote
Reply

Tags
init, kill

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FC7] Kernel Panic - Attempted to kill init :( URPradhan Installation, Upgrades and Live Media 15 28th August 2007 03:42 AM


Current GMT-time: 12:10 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Vallabh Vidyanagar - Petrolina Travel Photos on Instagram - Thamaga Instagram Photos