chiark / gitweb /
@@ -1,3 +1,9 @@
[userv-utils.git] / ipif / udptunnel-vpn-defaults
index add96dac8e1739ae98018ad6bb6b5ad1f1fd9a1c..39f96a882f270a74afeaca9361ea6968204e70d7 100644 (file)
@@ -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])
@@ -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
 ])