components/openldap/Solaris/ldap-olslapd.xml
changeset 474 742dc4436b35
child 550 39f79e2050e4
equal deleted inserted replaced
473:b88384d5a7ae 474:742dc4436b35
       
     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='SUNWopenldapr:slapd'>
       
    29 
       
    30 <service
       
    31 	name='network/ldap/server'
       
    32 	type='service'
       
    33 	version='1'>
       
    34 
       
    35 	<!--
       
    36 	  Because we may have multiple instances of network/http
       
    37 	  provided by different implementations, we keep dependencies
       
    38 	  and methods within the instance.
       
    39 	-->
       
    40 
       
    41 	<instance name='openldap_24' enabled='false'>
       
    42 		<!--
       
    43 		  Wait for network interfaces to be initialized.
       
    44 		-->
       
    45 		<dependency name='network'
       
    46 		    grouping='require_all'
       
    47 		    restart_on='error'
       
    48 		    type='service'>
       
    49 		    <service_fmri value='svc:/milestone/network:default'/>
       
    50 		</dependency>
       
    51 
       
    52 		<!--
       
    53 		  Wait for all local filesystems to be mounted.
       
    54 		-->
       
    55 		<dependency name='filesystem-local'
       
    56 		    grouping='require_all'
       
    57 		    restart_on='none'
       
    58 		    type='service'>
       
    59 		    <service_fmri
       
    60 			value='svc:/system/filesystem/local:default'/>
       
    61 		</dependency>
       
    62 
       
    63 		<exec_method
       
    64 		    type='method'
       
    65 		    name='start'
       
    66 		    exec='/lib/svc/method/ldap-olslapd start'
       
    67 		    timeout_seconds='60'>
       
    68 		</exec_method>
       
    69 
       
    70 		<exec_method
       
    71 			type='method'
       
    72 			name='stop'
       
    73 			exec='/lib/svc/method/ldap-olslapd stop %{restarter/contract}'
       
    74 			timeout_seconds='60' />
       
    75 
       
    76 		<property_group name='startd' type='framework'>
       
    77 			<!-- sub-process core dumps shouldn't restart
       
    78 				session -->
       
    79 			<propval name='ignore_error' type='astring'
       
    80 				value='core,signal' />
       
    81 		</property_group>
       
    82 
       
    83         <template>
       
    84             <common_name>
       
    85                 <loctext xml:lang='C'>
       
    86                     slapd - OpenLDAP LDAP server
       
    87                 </loctext>
       
    88             </common_name>
       
    89             <documentation>
       
    90                 <manpage title='slapd' section='8'
       
    91                     manpath='/usr/openldap/man' />
       
    92                 <doc_link name='openldap.org'
       
    93                     uri='http://www.openldap.org' />
       
    94             </documentation>
       
    95         </template>
       
    96 	</instance>
       
    97 
       
    98         <stability value='Evolving' />
       
    99 </service>
       
   100 
       
   101 </service_bundle>