From owner-freebsd-questions Thu May 23 19: 2:34 2002 Delivered-To: freebsd-questions@freebsd.org Received: from bast.unixathome.org (bast.unixathome.org [216.187.105.150]) by hub.freebsd.org (Postfix) with ESMTP id CCCA237B408 for ; Thu, 23 May 2002 19:02:26 -0700 (PDT) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id F34E53F28 for ; Thu, 23 May 2002 22:02:14 -0400 (EDT) From: "Dan Langille" Organization: DVL Software Limited To: freebsd-questions@freebsd.org Date: Thu, 23 May 2002 22:02:24 -0400 MIME-Version: 1.0 Subject: how to automagically restart net/pptpclient? Reply-To: dan@langille.org X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Message-Id: <20020524020215.F34E53F28@bast.unixathome.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have installed net/pptpclient (1.0.3). About 5 times a week, it dies and must be restarted. Does anyone have a script which checks and restarts it if it has died? FWIW: here's my ppp.conf. From what I can tell, the redial does nothing. And from what I know, the alias command is deprecated. Guess I should be using -nat. PONTEOTTAWA: set authname myname set authkey mypassword set timeout 0 set ifaddr 0 0 set redial 15 0 add 10.0.1.0/24 HISADDR alias enable yes And here is how it dies: May 21 20:55:43 ns1 ppp[74801]: Phase: deflink: lcp -> open May 21 20:55:43 ns1 ppp[74801]: Phase: bundle: Network May 23 16:41:59 ns1 ppp[74801]: Phase: Signal 15, terminate. May 23 16:41:59 ns1 ppp[74801]: Phase: Signal 15, terminate. May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: read (0): Got zero bytes May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: open -> lcp May 23 16:41:59 ns1 ppp[74801]: Phase: bundle: Terminate May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: Disconnected! May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: Connect time: 157578 secs: 5756166 octets in, 123806252 octets out May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: : 54244 packets in, 88738 packets out May 23 16:41:59 ns1 ppp[74801]: Phase: total 822 bytes/sec, peak 63761 bytes/sec on Thu May 23 16:41:59 2002 May 23 16:41:59 ns1 ppp[74801]: Phase: deflink: lcp -> closed May 23 16:41:59 ns1 ppp[74801]: Phase: bundle: Dead May 23 16:41:59 ns1 ppp[74801]: Phase: PPP Terminated (normal). -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message