Micetro by Men&Mice

Latest versions

Search all documentation

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

Symptom:

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

Solution

 <?xml version="1.0"?>
 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
 <!--
     Copyright 2007-2010 Men & Mice.  All rights reserved.
     Use is subject to license terms.
 -->
 
 <service_bundle type='manifest' name='mmsuite:mmdhcpremote'>
 
 <service
     name='network/dhcp/mmdhcpremote'
     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>
 
     <dependency
         name='config_data'
         grouping='require_all'
         restart_on='none'
         type='path'>
         <service_fmri value='file://localhost/etc/dhcpd.conf' />
     </dependency>
    
     <exec_method
         type='method'
         name='stop'
         exec=':kill'
         timeout_seconds='60' >
     </exec_method>
        
     <exec_method
         type='method'
         name='start'
         exec='/usr/sbin/mmdhcpremoted -u root -g root -e /var/dhcpd/dhcpd.leases -d /var/mmsuite/dhcp_server_controller -c /etc/dhcpd.conf'
         timeout_seconds='60' >
     </exec_method>
 
     <stability value='Unstable' />
 
     <template>
         <common_name>
             <loctext xml:lang='C'>
                 Men and Mice DHCP Server Controller
             </loctext>
         </common_name>
         <documentation>
         </documentation>
     </template>
 
 </service>
 
 </service_bundle>