How to disable INIT: respawning to fast disabling for 5 minutes"
I am using a ppp network to communicate across two transceivers. The transceivers act like a serial cable directly connecting two computers.
I am running a pppd getty in /etc/inittab
Well occasionally I will get a hiccup in the connection and I will lose the ability to use the PPP network because it has been disabled for 5 minutes as shown below:
pd:2345:respawn:/usr/sbin/pppd /dev/ttyUSB0 nodetach
and then shortly after it will respawn fine:
INIT: Id "pd" respawning too fast: disabled for 5 minutes
I am wonder how I can either disable INIT from disabling it, or shorten the time that it is disabled. Either that or I want to find a way to figure out exactly what is causing it.
Connect: ppp0 <--> /dev/ttyUSB0
Other than this the connection is fairly stable and has no problems. Any help would be appreciated :)
Add pppd delay or else recompile init
I don't have much experience with this but perhaps add the "connect" flag to the pppd line and run something that times out for a few seconds before each new start of pppd. Perhaps pppd gets knocked by noise and tries to start up too fast or before the other end has cleaned up (I'm guessing).
>> pd:2345:respawn:/usr/sbin/pppd /dev/ttyUSB0 nodetach connect 'sleep 5'
Changing to this line above might cause pppd to respawn no faster than every 5 seconds, and that might solve the problem.
If you want to take chances, you can also try to recompile init (eg, maybe you use the "sysinit" project at freshmeat) and change "#define SLEEPTIME 300 /* Disable time */" to a value less than 300 (300 is 5 minutes).
Sorry, but I have not tested these suggestions and am working off limited amount of knowledge and experience.