public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I control ttyS0 respawning speed?
@ 2010-04-19 16:58 Jarry
  2010-04-21  7:43 ` Amit Dor-Shifer
  0 siblings, 1 reply; 4+ messages in thread
From: Jarry @ 2010-04-19 16:58 UTC (permalink / raw
  To: gentoo-user

Hi,
I have set-up serial console on my server in /etc/inittab:

s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100

It mostly works, with one exception: right after boot-up
I get this message:

INIT: ID "s0" respawning too fast: disabled for 5 minutes

Of course, I can see this only on attached monitor, because
ttyS0 is dead. After those 5min ttyS0 is again up/running
and I can finally log in. I tried lowering port speed
down to 9600, but it does not make any difference...

How can I control that respawn speed, or prohibit this
behavior (disabling ttyS0 for 5min)? I do not like waiting
5min to log in, after I restarted server...

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How can I control ttyS0 respawning speed?
  2010-04-19 16:58 [gentoo-user] How can I control ttyS0 respawning speed? Jarry
@ 2010-04-21  7:43 ` Amit Dor-Shifer
  2010-04-22 17:08   ` Jarry
  0 siblings, 1 reply; 4+ messages in thread
From: Amit Dor-Shifer @ 2010-04-21  7:43 UTC (permalink / raw
  To: gentoo-user



Jarry wrote:
> Hi,
> I have set-up serial console on my server in /etc/inittab:
>
> s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100
>
> It mostly works, with one exception: right after boot-up
> I get this message:
>
> INIT: ID "s0" respawning too fast: disabled for 5 minutes
>
> Of course, I can see this only on attached monitor, because
> ttyS0 is dead. After those 5min ttyS0 is again up/running
> and I can finally log in. I tried lowering port speed
> down to 9600, but it does not make any difference...
>
> How can I control that respawn speed, or prohibit this
> behavior (disabling ttyS0 for 5min)? I do not like waiting
> 5min to log in, after I restarted server...
>
> Jarry
>
Don't know the answer to yr question. But I'm also not sure if you're 
asking the right question.
When I last saw "respawning too fast: disabled for 5 minutes", it was 
actually an issue with the spawned process not being able to start. I'm 
therefore suggesting you'd want to consider checking why agetty cannot 
run, rather than working around init's behavior.
Amit



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How can I control ttyS0 respawning speed?
  2010-04-21  7:43 ` Amit Dor-Shifer
@ 2010-04-22 17:08   ` Jarry
  2010-04-25  6:29     ` Amit Dor-Shifer
  0 siblings, 1 reply; 4+ messages in thread
From: Jarry @ 2010-04-22 17:08 UTC (permalink / raw
  To: gentoo-user

On 21. 4. 2010 9:43, Amit Dor-Shifer wrote:
> Jarry wrote:
>>
>> s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100
>> It mostly works, with one exception: right after boot-up
>> I get this message:
>>
>> INIT: ID "s0" respawning too fast: disabled for 5 minutes
>>
>> How can I control that respawn speed, or prohibit this
>> behavior (disabling ttyS0 for 5min)? I do not like waiting
>> 5min to log in, after I restarted server...
>>
> Don't know the answer to yr question. But I'm also not sure if you're
> asking the right question.
> When I last saw "respawning too fast: disabled for 5 minutes", it was
> actually an issue with the spawned process not being able to start. I'm
> therefore suggesting you'd want to consider checking why agetty cannot
> run, rather than working around init's behavior.
> Amit

You may be right, but I did not find any clue as why is agetty
spawning too fast. I just noticed it happens only during boot-up,
with probability about 1:5. Maybe some starting processes are
conflicting with agetty. I do not think it is very serious problem,
as agetty on ttyS0 is always respawned after those 5min. All I want
is to reduce somehow those 5min time...

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] How can I control ttyS0 respawning speed?
  2010-04-22 17:08   ` Jarry
@ 2010-04-25  6:29     ` Amit Dor-Shifer
  0 siblings, 0 replies; 4+ messages in thread
From: Amit Dor-Shifer @ 2010-04-25  6:29 UTC (permalink / raw
  To: gentoo-user



Jarry wrote:
> On 21. 4. 2010 9:43, Amit Dor-Shifer wrote:
>> Jarry wrote:
>>>
>>> s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100
>>> It mostly works, with one exception: right after boot-up
>>> I get this message:
>>>
>>> INIT: ID "s0" respawning too fast: disabled for 5 minutes
>>>
>>> How can I control that respawn speed, or prohibit this
>>> behavior (disabling ttyS0 for 5min)? I do not like waiting
>>> 5min to log in, after I restarted server...
>>>
>> Don't know the answer to yr question. But I'm also not sure if you're
>> asking the right question.
>> When I last saw "respawning too fast: disabled for 5 minutes", it was
>> actually an issue with the spawned process not being able to start. I'm
>> therefore suggesting you'd want to consider checking why agetty cannot
>> run, rather than working around init's behavior.
>> Amit
>
> You may be right, but I did not find any clue as why is agetty
> spawning too fast. I just noticed it happens only during boot-up,
> with probability about 1:5. Maybe some starting processes are
> conflicting with agetty. I do not think it is very serious problem,
> as agetty on ttyS0 is always respawned after those 5min. All I want
> is to reduce somehow those 5min time...
>
> Jarry
>
Well then, as far as I can see, the 5 min. timeout is hard-coded in 
/sbin/init.
Amit



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-04-25  6:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-19 16:58 [gentoo-user] How can I control ttyS0 respawning speed? Jarry
2010-04-21  7:43 ` Amit Dor-Shifer
2010-04-22 17:08   ` Jarry
2010-04-25  6:29     ` Amit Dor-Shifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox