Re: PPTP VPN, PPTP CONFIG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux