replication: sync_client on master stops after restarting the replica

Marcus Schopen lists at localguru.de
Thu May 21 03:32:18 EDT 2015


Am Donnerstag, den 16.10.2014, 14:57 +0200 schrieb Rudy Gevaert:
> On Tue, Oct 14, 2014 at 10:28:24PM +0200, Marcus Schopen wrote:
> > 
> > Thanks, what a great idea.
> > 
> > Is it this script?
> > 
> > https://github.com/rgevaert/cyrus-ugent/blob/master/src/cyrus-synccheck
> > 
> 
> Hi, yes it is, I forgot I shared it online :)
> 
> Rudy

Checked monit rules today and forgot to post what I did last year. Here
is my monit rule on master:

--------
check process sync_client matching "/usr/lib/cyrus/bin/sync_client -r"
every 2 cycles
   start program = "/root/bin/start_cyrus_sync_client"
   stop program = "/usr/bin/killall sync_client"
   if 5 restarts within 10 cycles then timeout
--------

/root/bin/start_cyrus_sync_client:
--------
#!/bin/bash

/bin/su - cyrus -c "/usr/lib/cyrus/bin/sync_client -r"
--------

Ciao
Marcus




More information about the Info-cyrus mailing list