Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2002 00:57:52 -0400
From:      "Dan Langille" <dan@langille.org>
To:        freebsd-hackers@freebsd.org
Subject:   how to automagically restart net/pptpclient?
Message-ID:  <20020528045812.0F4F93F35@bast.unixathome.org>

next in thread | raw e-mail | index | archive | help
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-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020528045812.0F4F93F35>