Init script slowness

Thomas Cataldo tcataldo at gmail.com
Tue Oct 4 10:17:53 UTC 2011


Hi,

could you consider the following patch to cyrus init script :

diff --git a/debian/cyrus-common.cyrus-imapd.init
b/debian/cyrus-common.cyrus-imapd.init
index fc85485..282ac8d 100755
--- a/debian/cyrus-common.cyrus-imapd.init
+++ b/debian/cyrus-common.cyrus-imapd.init
@@ -172,7 +172,7 @@ do_stop()
     sync_stop
     [ "$?" = 2 ] && return 2

-    start-stop-daemon --stop --quiet --retry=QUIT/30/TERM/10/KILL/5
--pidfile $PIDFILE --name $NAME
+    start-stop-daemon --stop --quiet --retry=TERM/10/KILL/5 --pidfile
$PIDFILE --name $NAME
     RETVAL="$?"
     [ "$RETVAL" = 2 ] && return 2


I have some code that does cyrus restarts and it always takes 30sec if
someone has already connected to cyrus / is connected to cyrus.

Regards,
Thomas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20111004/dff210f8/attachment.html>


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list