X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/c852886b720b855ba45f1cfb8f43c0802e8dd61a..4a74cc46c5dd872f9e6083f2a85b487d5ffe3327:/ipif/udptunnel-vpn-defaults diff --git a/ipif/udptunnel-vpn-defaults b/ipif/udptunnel-vpn-defaults index 38512ae..a0b9c0c 100644 --- a/ipif/udptunnel-vpn-defaults +++ b/ipif/udptunnel-vpn-defaults @@ -14,7 +14,7 @@ m4_dnl You should have received a copy of the GNU General Public License m4_dnl along with userv-utils; if not, write to the Free Software m4_dnl Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. m4_dnl -m4_dnl $Id: udptunnel-vpn-defaults,v 1.2 2000/12/11 02:41:27 ian Exp $ +m4_dnl $Id: udptunnel-vpn-defaults,v 1.4 2001/03/10 17:32:29 ian Exp $ SET( lcommand, [udptunnel]) SET( crypto, @@ -29,6 +29,7 @@ m4_dnl lend -- usually set in global m4_dnl rend -- usually set in sites SET( mtu, [1000]) SET( proto, [cslip]) +SET( to_restart, [10]) SET( to_poll, [30]) SET( to_quit, [130]) SET( to_report, [1800]) @@ -74,7 +75,7 @@ SET( syslog_priority, info) SET( inittab_runlevels, 2345) SET( inittab_pfx, []) SET( inittab_sfx, - [2>&1 | logger -p V_syslog_facility.V_syslog_priority -t tunnel-V_site]) + [&1 | logger -p V_syslog_facility.V_syslog_priority -t tunnel-V_site]) SET( inittab_command,[V_inittab_pfx V_invoke_file V_inittab_sfx]) SET( inittab_line, [V_inittab_runlevels:respawn:V_inittab_command]) @@ -82,9 +83,13 @@ SET( invoke_body, [set -e V_invoke_hook echo "STARTING TUNNEL `date`" >&2 +set +e V_command rc=$? +set -e echo "TUNNEL CLOSED rc=$rc" >&2 +sleep V_to_restart +echo "TUNNEL MAYRESTART" >&2 exit $rc ])