Re: replication: sync_client on master stops after restarting the replica

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


----
Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux