From owner-freebsd-questions Sat Jul 5 18:39:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA28920 for questions-outgoing; Sat, 5 Jul 1997 18:39:23 -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 SAA28910 for ; Sat, 5 Jul 1997 18:39:17 -0700 (PDT) Received: (from nathan@localhost) by deimos.senate.org (8.8.5/8.8.5) id VAA01163; Sat, 5 Jul 1997 21:39:03 -0400 (EDT) From: Nathan Dorfman Message-Id: <199707060139.VAA01163@deimos.senate.org> Subject: Re: pppd Auto-reconnect? In-Reply-To: <199707052322.AAA03165@awfulhak.demon.co.uk> from Brian Somers at "Jul 6, 97 00:22:51 am" To: brian@awfulhak.org (Brian Somers), freebsd-questions@freebsd.org Date: Sat, 5 Jul 1997 21:39:02 -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 But ip-down will get executed once. If that fails because of a NO CARRIER or something like that it will not retry I have had this happen to me. Is it possible to have init automatically respawn it every time it does, like with a SysV /etc/inittab? > > Is it possible to have pppd reconnect automatically? I have a script > > /usr/sbin/ppp-on to start pppd with the required options, if necessary > > I can put all of them in /etc/ppp/options so it can be brought up with > > a simple pppd command. However, can I make the system do it (as with > > SysV's /etc/inittab) so that whenever the process dies it restarts it? > > You can spawn pppd from /etc/ppp/ip-down. > > > Or do I have to write my own program to do it? I DID try ppp, after I > > use term to establish the "Packet mode" and ppp becomes PPP, I ^Z and > > bg, then after the first I type in the shell, it sends a 'machine > > gun' stream of beeps through my PC speaker (not the modem speaker) until > > I kill the shell. The "tone" of the beep changes as I switch ttys. > > Use the -background option and set yourself up a dial script. For > the latest copy of ppp, have a look at > > http://www.freebsd.org/~brian/ppp-2.2-970701.tar.gz > > > Thanks for any input! > > -- > Brian , > > Don't _EVER_ lose your sense of humour.... > > >