|
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
|
|
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
|
|
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
|
|