[NTLUG:Discuss] How often does inittab respawn?
Neil Aggarwal
neil at JAMMConsulting.com
Sun Jul 22 17:04:28 CDT 2007
Patrick:
That is perfect. Thanks for the info.
Neil
--
Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com
FREE! Eliminate junk email and reclaim your inbox.
Visit http://www.spammilter.com for details.
-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On Behalf
Of Patrick R. Michaud
Sent: Sunday, July 22, 2007 11:26 AM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] How often does inittab respawn?
On Sun, Jul 22, 2007 at 09:22:47AM -0500, Neil Aggarwal wrote:
> Hello:
>
> How often does inittab respawn and is is possible
> to control how often it does for a process listed?
The inittab file is used by init(8), which respawns whenever
one of its descendant processes dies. (Init can also respawn
in response to a powerfail signal, or when it's signaled
by telinit to change the system's runlevel.)
So, respawning is generally "immediate", and triggered
by the termination of a process generated from an inittab
entry.
> I am thinking of using it to ensure and SSH tunnel
> remains connected. The problem I see is if the remote
> server is down, inittab may attempt to reconnect so
> often that it will cause a huge load on my server.
If init detects that a particular entry in inittab is
respawning rapidly (more than 10 times in 2 minutes), it
will generally suspend re-spawning that entry for another
5 minutes or until it receives a signal that causes it
to explicitly rescan inittab and try again.
Pm
_______________________________________________
http://www.ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list