cyrus configuration reload without service interuption
aspineux at gmail.com
Tue Jan 8 13:18:36 EST 2008
When cyrmaster receive a SIGHUP, it reload its configuration file,
stop/start the the required services
and schedule new "EVENTS".
But running imapd, pop3d ... keep running until they "expire" (timout
waiting for a new connection, or reach
the maximum number of connection).
For example, if you need to replace your certificate or added new
cyrus admins to imapd.conf , you need to make a restart,
(this mean a disconnection, of already connect users) if you want to
use the new stuff immediately.
I would like to provide a patch to avoid this.
Here is the idea:
When cyrmaster get a SIGHUP, It does as before, but send a SIGHUP to
all imapd, popd process too. The sig_handler
of these processes will update their connection counter to a value
above the limit and then will no accept new connection and
then will shutdown!
I thing the work is very limited.
Please comment if you thing this is a good or bad idea, or if I missed
aspineux gmail com
May the sources be with you
More information about the Cyrus-devel