"Headless" Linux & agetty Issues

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View

I'm trying to setup a headless Linux system on a PC/104 board.  I had some
problems with the following error message ...

INIT: Id "S1" respawning too fast: disabled for 5 minutes

... which I solved by commenting out the lines in /etc/inittab that
controlled the respawning of agetty on all the virtual consoles.  It seems
to work now, but there are some situations with my PC/104 board where I
connect a video card to make troubleshooting easier.  With my new
/etc/inittab this won't work any more.  Is there any way to set it up so
that it will work under both configurations?  Can it somehow detect if a
video card is present and only do the respawn stuff if it detects one?

Any suggestions?



Re: "Headless" Linux & agetty Issues
Quoted text here. Click to load it

Hmm.. 'S1' would refer to the agetty listening on the (secondary)
serial port, not on any virtual console. So, if it's just 'S1' entry
that causes problems, then by all means do comment out that entry.

Quoted text here. Click to load it

Hmm.. not having a video card might very well make it so that not even
the vc gettys can be started, because the vcs are anyway bound to the
video card.

Quoted text here. Click to load it

Hmm.. I think you could find the existence of the video card at least
through lspci, and then do some magic to replace and reread the inittab
Wolf  a.k.a.  Juha Laiho     Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
We've slightly trimmed the long signature. Click to see the full one.
Re: "Headless" Linux & agetty Issues

    I had a similar problem when I was testing the bare bones linux on a laptop
prior to putting it on a DiskonChip

    The laptop had an IrDA port on ttyS2 and was continually trying to handle

    It's probably not the problem you have but, it had me fooled for a while.

Juha Laiho wrote:

Quoted text here. Click to load it

Re: "Headless" Linux & agetty Issues
Quoted text here. Click to load it


One possible solution is to set another option instead of 'respawn' in
your inittab file. (ie. "once" comes to mind)

Maybe cobble together some bash script that inittab launches and have
that check if the video is present by searching /proc, if so execute
getty, otherwise exit.

Check out 'man inittab' for some background.


Site Timeline