LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Line in inittab (https://www.linuxquestions.org/questions/linux-newbie-8/line-in-inittab-829144/)

Mr. Alex 08-29-2010 11:07 AM

Line in inittab
 
Code:

x:5:respawn:/usr/bin/xdm
What does this line in inittab mean?

EricTRA 08-29-2010 11:10 AM

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

druuna 08-29-2010 11:42 AM

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:).

AlucardZero 08-29-2010 11:57 AM

man inittab

druuna 08-29-2010 12:08 PM

@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.

AlucardZero 08-29-2010 12:36 PM

Edit: nevermind

Mr. Alex 08-29-2010 12:54 PM

Thanks!

druuna 08-29-2010 01:10 PM

You're welcome :)

jay73 08-29-2010 02:50 PM

The "respawn" means that it should automatically be restarted when it is stopped for whatever reason.

Mr. Alex 08-30-2010 05:32 AM

Quote:

Originally Posted by jay73 (Post 4081637)
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?

jay73 08-30-2010 09:25 PM

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.


All times are GMT -5. The time now is 11:50 PM.