From owner-freebsd-questions Wed Nov 4 01:46:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA25407 for freebsd-questions-outgoing; Wed, 4 Nov 1998 01:46:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ingate.uk.neceur.com (ingate.uk.neceur.com [193.116.254.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA25399 for ; Wed, 4 Nov 1998 01:46:05 -0800 (PST) (envelope-from Jeff.Bond@nectech.co.uk) Received: from internal-mail.uk.neceur.com by ingate.uk.neceur.com id JAA27362; Wed, 4 Nov 1998 09:40:16 GMT Received: from exchange.nectech.co.uk by internal-mail.uk.neceur.com id JAA28714; Wed, 4 Nov 1998 09:45:36 GMT Received: by exchange.nectech.co.uk with Internet Mail Service (5.0.1460.8) id ; Wed, 4 Nov 1998 09:43:22 -0000 Message-ID: <711344C31ACDD1118B94006097827D5B9527C6@exchange.nectech.co.uk> From: "Bond, Jeffery" To: "'questions@freebsd.org'" Subject: pppd maxconnect question Date: Wed, 4 Nov 1998 09:43:20 -0000 X-Mailer: Internet Mail Service (5.0.1460.8) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello folks, I have a question regarding pppd. I have already set it up to dial my ISP without problems, but I want this in addition: 1) pppd will attempt to connect three times maximum. (ie. if line is busy, or connection is dropped for some reason) 2) pppd will terminate after a maximum of 20 minutes. I can get 1) to work by using the 'persist' option with the connect-max-attempts 3' option, although this was confusing because it depends on the order of these two options. I tried using the 'maxconnect 1200' option to terminate pppd after 20 mins, but when the line terminates after 20 mins, pppd attempts to reconnect again (up to three times)! Is there a way to achieve this without using a shell script to invoke pppd, sleep for 20 mins, and then kill off the pppd process if it's still running? Maybe the shell script is the best way? Any advice gratefully received, Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message