Micetro by Men&Mice

Latest versions

Search all documentation

Child pages
  • Solaris SMF Manifest XML File for Men & Mice Central
Skip to end of metadata
Go to start of metadata

Symptom:

If you want to start Men & Mice Central on Solaris 10 (or higher) using the SMF facility, below is an example SMF XML Manifest file for the mmcentrald process.

Solution

<?xml version="1.0"?>
 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
 <!--
     Copyright 2007-2010 Men and Mice.  All rights reserved.
     Use is subject to license terms.
 -->
 <service_bundle type='manifest' name='mmsuite:mmcentral'>
 
 <service
     name='network/dns/mmcentral'
     type='service'
     version='1'>
 
     <create_default_instance enabled='false' />
 
     <single_instance />
 
     <dependency
         name='filesystem_minimal'
         grouping='require_all'
         restart_on='none'
         type='service'>
         <service_fmri value='svc:/system/filesystem/minimal' />
     </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>
 
     <exec_method
         type='method'
         name='stop'
         exec=':kill'
         timeout_seconds='60' />
    
      <exec_method
         type='method'
         name='start'
         exec='/usr/sbin/mmcentrald'
         timeout_seconds='60' />
        
         <property_group name='startd' type='framework'>
                 <propval name='duration' type='astring' value='contract' />
         </property_group>
    
     <stability value='Unstable' />
    
     <template>
         <common_name>
             <loctext xml:lang='C'>
                 Men and Mice Central
             </loctext>
         </common_name>
     </template>
 </service>
 
 </service_bundle>