Bug#627339: init script should use QUIT instead of TERM
Steven Kurylo
steven.kurylo at aviawest.com
Fri May 20 17:00:26 UTC 2011
On 11-05-20 06:45 AM, Ondřej Surý wrote:
> Hi Steven,
>
> could you try attached init.d script?
I made some minor corrections.
* Silenced pidofproc in do_start and try-restart
* Fix pidofproc return code handling in do_stop (otherwise
/etc/init.d/cyrus-imapd stop always returned failed)
I'll have to so more testing of the sync_client. One thought is there
is may be race condition with cyrmaster (or a user) starting a new
sync_client process after sync_stop has run, but before the shutdown is
finished.
Perhaps the touch "$SYNCSHUTDOWN" should be done regardless and rm -f
$SYNCSHUTDOWN should be done after cyrmaster has stopped. I would
assume if "$SYNCSHUTDOWN" exists, then no new sync_client will start.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: init.patch
Type: text/x-patch
Size: 1239 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20110520/5ee1a9ec/attachment.bin>
More information about the Pkg-Cyrus-imapd-Debian-devel
mailing list