]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
vpn-watch: set established check counter back to 10min.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Aug 2011 12:55:04 +0000 (14:55 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 29 Aug 2011 12:55:04 +0000 (14:55 +0200)
we had raised this to 60min because it has restarted all connections
if one connection was permanently down. Now it try to start only this
one connection again.

src/scripts/vpn-watch

index 563c14c47d988a706556eae67782ebbc644fe873..7eae873cea81f1820920a058cdd85a895f265dac 100755 (executable)
@@ -31,8 +31,8 @@ while ( $i == 0){
 
   $round++;
 
-   # Reset roundcounter after 60 min. To do established check.
-  if ($round > 59) { $round=0; }
+   # Reset roundcounter after 10 min. To do established check.
+  if ($round > 9) { $round=0; }
 
   if (open(FILE, "<${General::swroot}/vpn/config")) {    @vpnsettings = <FILE>;
     close(FILE);