LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-29-2010, 11:07 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Line in inittab


Code:
x:5:respawn:/usr/bin/xdm
What does this line in inittab mean?
 
Old 08-29-2010, 11:10 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hi,

If I'm not mistaking (more experienced with server then with GUI) it starts the login manager xdm when booting into runlevel 5.

Kind regards,

Eric
 
Old 08-29-2010, 11:42 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

Just to support EricTRA's answer: This will indeed start xdm (runlevel 5) if initdefault is set to 5 in the inittab file (id:5:initdefault:).
 
Old 08-29-2010, 11:57 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
man inittab
 
Old 08-29-2010, 12:08 PM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
@AlucardZero: rtfm answers aren't helpful, especially in the Newbie sub forum. Politely pointing out that a man page exists might be helpful...

Just my 2c.
 
Old 08-29-2010, 12:36 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,822

Rep: Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610Reputation: 610
Edit: nevermind
 
Old 08-29-2010, 12:54 PM   #7
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Thanks!
 
Old 08-29-2010, 01:10 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
You're welcome
 
Old 08-29-2010, 02:50 PM   #9
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
The "respawn" means that it should automatically be restarted when it is stopped for whatever reason.
 
Old 08-30-2010, 05:32 AM   #10
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jay73 View Post
The "respawn" means that it should automatically be restarted when it is stopped for whatever reason.
So if I kill xdm process, this line means it will automatically be restarted?
 
Old 08-30-2010, 09:25 PM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
That should be what it means. Here is a parallel: text mode log-in is performed by the "login" process, which dies as soon as you enter the correct username and password; yet when you log out, you are presented with a new "login:" prompt. How can that be if the login process died when you logged in? Easy: it was respawned. Similarly, if you "killall nautilus", you will see some flicker on your desktop and nautilus and your icons will disappear, yet a second later nautilus is automatically restored to working order. That would be another example of respawning.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php - Read file line by line and change a specific line. anrea Programming 2 01-28-2007 01:43 PM
rh9 boots to command line when inittab set to 5 BobNz Linux - Newbie 3 04-22-2004 08:56 PM
The inittab line "ud::once:/sbin/update" and mdk 9.1 Wasteed Mandriva 0 09-03-2003 07:04 AM
could u show me the last line of your /etc/inittab file? C++freak Linux - Software 2 07-30-2002 08:27 AM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration