Subject: Re: pppd won't work from init?
To: Frederick Bruckman <fb@enteract.com>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: port-i386
Date: 10/16/1998 17:15:01
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).

Next? :-)

  -jm