bernhard: utils/admin kolab_vacation_tool, 1.2, 1.3 kolab_vacation_tool.README, 1.2, 1.3

cvs at intevation.de cvs at intevation.de
Thu Mar 16 12:14:09 CET 2006


Author: bernhard

Update of /kolabrepository/utils/admin
In directory doto:/tmp/cvs-serv16405

Modified Files:
	kolab_vacation_tool kolab_vacation_tool.README 
Log Message:
Added an usleep(500000) to avoid direct reconnection attempts to sieve.
verbosity>0 will also write a message that the script sleeps.


Index: kolab_vacation_tool
===================================================================
RCS file: /kolabrepository/utils/admin/kolab_vacation_tool,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- kolab_vacation_tool	20 Jan 2006 17:11:50 -0000	1.2
+++ kolab_vacation_tool	16 Mar 2006 11:14:07 -0000	1.3
@@ -252,6 +252,12 @@
     foreach($errors as $line) {
       fwrite(STDOUT, $line."\n");
     }
+    /* sleep a bit to avoid flooding the system with processes. */
+    /* trying half a second = 500 000 micro seconds*/
+    usleep(500000);
+    if ($verbosity > 0) {
+      fwrite(STDOUT, "Sleeping a bit.\n");
+    }
   }
 }
 

Index: kolab_vacation_tool.README
===================================================================
RCS file: /kolabrepository/utils/admin/kolab_vacation_tool.README,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- kolab_vacation_tool.README	20 Jan 2006 17:11:50 -0000	1.2
+++ kolab_vacation_tool.README	16 Mar 2006 11:14:07 -0000	1.3
@@ -25,5 +25,12 @@
 $ kolab_vacation_tool --help
 
 
+News
+----
+Since Revision 1.3 the script waits for half a second in case of an error
+before trying the next user.
+If timsieved does not start, the script before Rev 1.3 would try right away
+which might cause further strain on the cyrus system.
+
 
 $Id$





More information about the commits mailing list