Re: Replication rolling or cron?

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

 



>
> (at FastMail we start it from cyrus.conf, but also have a job that
> runs from cron and checks that there's a sync_client running every 10
> minutes.

It also works well with SMF if you're a Solaris site.

$ svcs -x sync_client
svc:/network/sync_client:default (?)
  State: online since Thu Feb 12 22:53:26 2009
    See: /var/svc/log/network-sync_client:default.log
Impact: None.
$

That way it restarts on failure.

ian

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/ 
service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
   <service name='network/sync_client' type='service' version='0'>
     <dependency name='filesystem_minimal' grouping='require_all'  
restart_on='none' type='service'>
       <service_fmri value='svc:/system/filesystem/local'/>
     </dependency>
     <dependency name='loopback' grouping='require_any'  
restart_on='error' type='service'>
       <service_fmri value='svc:/network/loopback'/>
     </dependency>
     <dependency name='network' grouping='optional_all'  
restart_on='error' type='service'>
       <service_fmri value='svc:/milestone/network'/>
     </dependency>
     <dependency name='cyrus' grouping='require_all'  
restart_on='error' type='service'>
       <service_fmri value='svc:/network/cyrus:default'/>
     </dependency>
     <exec_method name='stop' type='method' exec=':kill'  
timeout_seconds='60'>
       <method_context/>
     </exec_method>
     <property_group name='tm_common_name' type='template'/>
     <instance name='default' enabled='true'>
       <exec_method name='start' type='method' exec='/opt/cyrus/bin/ 
sync_client -r' timeout_seconds='60'>
         <method_context project='cyrus'>
           <method_credential user='cyrus' group='mail'/>
         </method_context>
       </exec_method>
     </instance>
     <stability value='Unstable'/>
   </service>
</service_bundle>

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[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