[Da-tools-commits] ./debian/userdir-ldap r380: Sleep for a random time, up to two minutes, in ud-replicate when not called
Peter Palfrader
peter at palfrader.org
Wed Apr 16 12:09:51 UTC 2008
------------------------------------------------------------
revno: 380
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap
timestamp: Wed 2008-04-16 14:09:51 +0200
message:
Sleep for a random time, up to two minutes, in ud-replicate when not called
interactively. This is to prevent DoSing the db server when many clients come
at the same time.
modified:
debian/changelog
ud-replicate
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-04-16 12:08:46 +0000
+++ b/debian/changelog 2008-04-16 12:09:51 +0000
@@ -13,6 +13,9 @@
inetOrgPerson, that doesn't work.
* Add myself to uploaders.
* Create /var/lib/misc/thishost as a symlink to the hostname in postinst.
+ * Sleep for a random time, up to two minutes, in ud-replicate when not
+ called interactively. This is to prevent DoSing the db server when
+ many clients come at the same time.
[ Mark Hymers ]
* ud-userimport, ud-groupadd, ud-roleadd, ud-useradd, userdir_ldap.py:
@@ -61,7 +64,7 @@
* Build manpages at build time (add Build-Depend on yodl)
* Install built manpages
- -- Peter Palfrader <weasel at debian.org> Wed, 16 Apr 2008 14:05:44 +0200
+ -- Peter Palfrader <weasel at debian.org> Wed, 16 Apr 2008 14:08:55 +0200
userdir-ldap (0.3.15) unstable; urgency=low
=== modified file 'ud-replicate'
--- a/ud-replicate 2008-01-10 14:43:33 +0000
+++ b/ud-replicate 2008-04-16 12:09:51 +0000
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# Copyright (c) 1999-2001 Jason Gunthorpe <jgg at debian.org>
# Copyright (c) 2002-2003,2006 Ryan Murray <rmurray at debian.org>
@@ -24,6 +24,7 @@
if [ -z "$TERM" -o "$TERM" = "dumb" ]
then
exec > /dev/null 2>&1
+ sleep $(( $RANDOM % 120 ))
else
verbose=-v
fi
More information about the Da-tools-commits
mailing list