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 10:24:33
On Fri, 16 Oct 1998, Jukka Marin wrote:

> On Fri, Oct 16, 1998 at 09:12:19AM -0500, Frederick Bruckman wrote:
> > > 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.
> 
> Sorry, but it's not that, either.  I use "-detach" (and "silent") so the
> pppd process should never go into background (and it never does if I
> run it from shell).

There could be some other error in the command line, in your
/etc/ppp/options, or in a "call" options file, that causes pppd to
exit immediately. What happens when you call pppd on the command line,
exactly the same way as in ttys?