Subject: Re: pppd won't work from init?
To: Jukka Marin <jmarin@pyy.jmp.fi>
From: Frederick Bruckman <fb@enteract.com>
List: port-i386
Date: 10/16/1998 09:12:19
On Fri, 16 Oct 1998, Jukka Marin wrote:

> This wasn't my problem - I tried adding the tty line with pppd into /etc/ttys
> and then did "kill -HUP 1".. never tried to reboot (well, I did, but it didn't
> make things any better or worse).
> 
> Does init open the tty line before starting the program (getty or pppd)?
> init was whining that "getty was repeating too quickly" because pppd always
> died immediately with the "Connect script failed" message.  (Argh, almost
> like those "Error -4235" messages in windoze.. it tells you something didn't
> work, but is very careful not to reveal what the PROBLEM is.. ;-)

The problem here is that the exec call to pppd returns immediately,
just like when you call it from the shell. Therefore init tries to run
another one, but the first one has already claimed the port. It's a
real mess. If you really want init to open pppd, use the "nodetach"
option. You probably would want to use "silent" as well, in case the
other machine isn't already up at boot time.