From: James Cameron <james.cameron@hp.com>
To: linux-ppp@vger.kernel.org
Subject: Re: PPTP VPN, PPTP CONFIG
Date: Wed, 02 Jul 2008 03:38:29 +0000 [thread overview]
Message-ID: <20080702033828.GB5466@hp.com> (raw)
In-Reply-To: <W2416827856326101214924196@webmail30>
G'day Tony,
I'm the author of pptpconfig, and I am beginning to regret it.
You've done some interesting things with what you've learned from it.
You might not have known what the updetach option does ... check the
pppd man page for that.
Your final question was how to write a script to try the pppd command
repeatedly. This is a shell question. One simple method is to write a
shell loop, like this:
#!/bin/sh
while true; do
pppd call myserver logfd 1 nodetach
done
The updetach is changed to nodetach, so that the pppd process does not
exit until the connection is closed.
If you used updetach in an inittab referenced script, you'd get too many
processes. This is because init might start a new one since the process
that started pppd had terminated.
Have a look at my script
http://quozl.linux.org.au/darcs/eee-maxon-bp3/usr/sbin/bp3
where I use pppd in a similar way.
--
James Cameron http://quozl.netrek.org/
HP Open Source, Volunteer http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/
prev parent reply other threads:[~2008-07-02 3:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 14:56 PPTP VPN, PPTP CONFIG tony.chamberlain
2008-07-02 3:38 ` James Cameron [this message]
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=20080702033828.GB5466@hp.com \
--to=james.cameron@hp.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