]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Revert "Fixed conn scheduler restart collectd when morning reconnect (graphs)"
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 11 May 2009 18:07:58 +0000 (20:07 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 11 May 2009 18:07:58 +0000 (20:07 +0200)
This reverts commit 67c532f594506464aed9fa95b63091bda5b723a9.
Syntax error and i think networking/red is a better place for restart
because a unwanted reconnect also make such problems

src/scripts/connscheduler

index 824af248abe6de932a017e3f00c048da931bcfa0..bc4d4eb6562302b5fc60c2600604bf3226213e5a 100644 (file)
@@ -79,11 +79,11 @@ sub hangup
     return;
   }
 
     return;
   }
 
-  # now wait for active triggerfile and ppp daemon to disappear
+  # now wait for active triggerfile and ppp daemon to disappear 
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
-  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 )
+  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 ) 
   {
     sleep 1;
     $counter--;
   {
     sleep 1;
     $counter--;
@@ -123,14 +123,12 @@ sub reconnect
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
   # wait maximum 60 seconds
   my $counter = 60;
   sleep 1;
-  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 )
+  while ( -e "${General::swroot}/red/active" || -e '/var/run/ppp-ipfire.pid' || $counter == 0 ) 
   {
     sleep 1;
     $counter--;
   }
   {
     sleep 1;
     $counter--;
   }
-  /etc/init.d/collectd stop
   &dial();
   &dial();
-  /etc/init.d/collectd start
 }
 
 
 }
 
 
@@ -170,7 +168,7 @@ sub profile
     ## FIXME: do we need to do this ?
     sleep($sleep_after_profile);
     &dial();
     ## FIXME: do we need to do this ?
     sleep($sleep_after_profile);
     &dial();
-  }
+  }  
 }
 
 
 }
 
 
@@ -202,7 +200,7 @@ sub timer
     }
 
 
     }
 
 
-    if ( $CONNSCHED::config[$i]{'ACTION'} eq 'reconnect' )
+    if ( $CONNSCHED::config[$i]{'ACTION'} eq 'reconnect' )    
     {
       &reconnect()
     }
     {
       &reconnect()
     }