From owner-freebsd-questions Sun Jul 6 10:34:44 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA29362 for questions-outgoing; Sun, 6 Jul 1997 10:34:44 -0700 (PDT) Received: from deimos.senate.org (nathan@senate.org [204.141.125.38]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA29357 for ; Sun, 6 Jul 1997 10:34:39 -0700 (PDT) Received: (from nathan@localhost) by deimos.senate.org (8.8.5/8.8.5) id NAA00247 for freebsd-questions@freebsd.org; Sun, 6 Jul 1997 13:33:54 -0400 (EDT) From: Nathan Dorfman Message-Id: <199707061733.NAA00247@deimos.senate.org> Subject: pppd and /etc/ttys To: freebsd-questions@freebsd.org Date: Sun, 6 Jul 1997 13:33:54 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I have set up an /etc/ppp/dialer (chat script) and /etc/ppp/options so that I can just type pppd and it will connect. However, I wanted to make it so when pppd dies it will automatically get restarted. I tried this: ttyv5 "/usr/sbin/pppd" cons25 off secure (obviously I had off turned to on when I tried to get it to work) in my /etc/ttys file. This spawned like five pppd's so I added a -detach flag to the options file to make it stay in the foreground. Now it more or less starts but chat logs alarm and dies every time I try to connect. I even added a sleep 15 to /etc/ppp/dialer right before the chat command so the modem has time to do whatever it needs to do, to no avail. I can still connect with a pppd command. Here are my dialer and options files: #!/bin/sh #chat connection script for pppd sleep 15 exec chat -v \ TIMEOUT 5 \ '' \rAT \ 'OK-+++\c-OK' ATH0 \ TIMEOUT 30 \ OK ATDT348-6272 \ CONNECT '' \ ogin:--ogin: nathan \ assword: [password] #pppd options file 0.0.0.0:0.0.0.0 # let the server worry about it /dev/cuaa3 38400 # modem and speed to use crtscts # enable hardware flow control modem # modem control line passive # wait for LCP packets defaultroute # make ppp the default router connect /etc/ppp/dialer # dial first! :-) -detach # foreground please Anyone have any ideas on why it is not working?