components/ipmitool/ipmievd.xml
changeset 268 6518166b581c
equal deleted inserted replaced
267:f7eb7d0199e2 268:6518166b581c
       
     1 <?xml version="1.0"?>
       
     2 <!--
       
     3 CDDL HEADER START
       
     4 
       
     5 The contents of this file are subject to the terms of the
       
     6 Common Development and Distribution License (the "License").
       
     7 You may not use this file except in compliance with the License.
       
     8 
       
     9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    10 or http://www.opensolaris.org/os/licensing.
       
    11 See the License for the specific language governing permissions
       
    12 and limitations under the License.
       
    13 
       
    14 When distributing Covered Code, include this CDDL HEADER in each
       
    15 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    16 If applicable, add the following below this CDDL HEADER, with the
       
    17 fields enclosed by brackets "[]" replaced with your own identifying
       
    18 information: Portions Copyright [yyyy] [name of copyright owner]
       
    19 
       
    20 CDDL HEADER END
       
    21 -->
       
    22 
       
    23 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
    24 <!--
       
    25     Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
       
    26 -->
       
    27 
       
    28 <service_bundle type='manifest' name='SUNWipmi:ipmievd'>
       
    29 
       
    30 <service name='network/ipmievd' type='service' version='1'>
       
    31 
       
    32 	<!--
       
    33 	  Configure a default instance for the service since it doesn't
       
    34 	  require additional configuration intervention before it starts.
       
    35 	-->
       
    36 	<create_default_instance enabled='false' />
       
    37 
       
    38 	<!--
       
    39 	  Wait for all usr filesystem to be mounted. ipmievd is
       
    40 	  located in /usr/lib.
       
    41 	-->
       
    42 	<dependency
       
    43 	    name='filesystem-usr'
       
    44 	    grouping='require_all'
       
    45 	    restart_on='none'
       
    46 	    type='service'>
       
    47 	    <service_fmri
       
    48 		value='svc:/system/filesystem/usr:default'/>
       
    49 	</dependency>
       
    50 
       
    51 	<!--
       
    52 	  Wait for syslog to be started in order to write system
       
    53 	  messages from the kernel.
       
    54 	-->
       
    55 	<dependency
       
    56 	    name='syslog'
       
    57 	    grouping='require_all'
       
    58 	    restart_on='none'
       
    59 	    type='service'>
       
    60 	    <service_fmri
       
    61 		value='svc:/system/system-log:default'/>
       
    62 	</dependency>
       
    63 
       
    64 	<!--
       
    65 	  The ipmievd start/stop methods.
       
    66 	-->
       
    67 
       
    68 	<exec_method
       
    69 		type='method'
       
    70 		name='start'
       
    71 		exec='/lib/svc/method/svc-ipmievd %m'
       
    72 		timeout_seconds='60'/>
       
    73 
       
    74 	<exec_method
       
    75 		type='method'
       
    76 		name='stop'
       
    77 		exec=':kill'
       
    78 		timeout_seconds='60' />
       
    79 
       
    80 	<property_group name='startd' type='framework'>
       
    81 		<!--
       
    82 		  Sub-process core dumps and external kill signals are not
       
    83 		  considered errors, so the service should be restarted.
       
    84 	        -->
       
    85 		<propval name='ignore_error' type='astring'
       
    86 			 value='core,signal' />
       
    87 	</property_group>
       
    88 
       
    89 	<stability value='Unstable' />
       
    90 
       
    91 	<template>
       
    92 		<common_name>
       
    93 			<loctext xml:lang='C'>
       
    94 				IPMI event daemon
       
    95 			</loctext>
       
    96 		</common_name>
       
    97 		<documentation>
       
    98 			<manpage title='ipmievd' section='8'
       
    99 				manpath='/usr/share/man' />
       
   100 			<doc_link name='sourceforge.net'
       
   101 				uri='http://sourceforge.net/projects/ipmitool' />
       
   102 		</documentation>
       
   103 	</template>
       
   104 </service>
       
   105 
       
   106 </service_bundle>