The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Keeping the connection alive
Author: Dan Langille 
Date:   02-05-02 16:14

If the connection dies, I want to restart it automagically. Anyone know how?

Reply To This Message
 
 Re: Keeping the connection alive
Author: Matt 
Date:   03-05-02 06:10

Is their an option similar ppp's

set redial 2 100

--Matt

Reply To This Message
 
 Re: Keeping the connection alive
Author: smoky 
Date:   05-05-02 14:38

this is very likely not the best solution:

you could use init (/etc/ttys) to keep it going. in pptp.sh, change the 5th line by removing the ending '&' (no bg). then, in /etc/ttys, add or modify the/a line to something like 'ttyvc "/usr/local/etc/rc.d/pptp.sh" unknown on secure'. just an idea..

'init q' to refresh /etc/ttys

Reply To This Message
 
 Re: Keeping the connection alive
Author: smoky 
Date:   05-05-02 14:44

actually, for that to work, you'd have to pass 'start' to pptp.sh. so instead of 'ttyvc "/usr/local/etc/rc.d/pptp.sh" unknown on secure', it'd be 'ttyvc "/usr/local/etc/rc.d/pptp.sh start" unknown on secure'

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org