Linux PPP protocol development
 help / color / mirror / Atom feed
From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: ppp link time limit
Date: Fri, 25 Sep 2009 18:56:14 +0000	[thread overview]
Message-ID: <4ABD124E.9090101@workingcode.com> (raw)
In-Reply-To: <004001ca3e15$69a6b9d0$0413010a@scu.escambray.com.cu>

Davy Leon wrote:
> Hi guys
> 
> I have a link wich I stablish by running
> 
> pppd call isp
> 
> It' launched by the cron at some scheduled times of the day. I need the
> link doesn't stay up for more than 30 min, but doesn't know how to do
> that. No matter the link is idle or being used I want to terminate it
> once reached the ammount of time specified. How can I do that?

I should probably port this option over from the OpenSolaris variant of
pppd:

     maxconnect n

         Terminate the connection after it has been available for
         network  traffic for n seconds (that is, n seconds after
         the first  network  control  protocol  starts).  An  LCP
         Time-Remaining  message  is  sent  when  the  first  NCP
         starts, and again when 5, 2, and 0.5 minutes are remain-
         ing.

Without that option, one way of doing what you ask is to use the
"linkname" parameter to force a reliable PID file name, and then just
sleep and kill the process based on the contents of that file.

-- 
James Carlson         42.703N 71.076W         <carlsonj@workingcode.com>

  parent reply	other threads:[~2009-09-25 18:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 18:20 ppp link time limit Davy Leon
2009-09-25 18:28 ` Chris Fowler
2009-09-25 18:40 ` Bill Unruh
2009-09-25 18:51 ` Charlie Brady
2009-09-25 18:55 ` Chris Fowler
2009-09-25 18:56 ` James Carlson [this message]
2009-09-25 20:28 ` Bill Unruh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ABD124E.9090101@workingcode.com \
    --to=carlsonj@workingcode.com \
    --cc=linux-ppp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox