components/memcached/Solaris/memcached.xml
changeset 223 b9246653129d
child 5005 634e69f7ae42
equal deleted inserted replaced
222:360c16309b43 223:b9246653129d
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
     3 <!--
       
     4  Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
       
     5 
       
     6  CDDL HEADER START
       
     7 
       
     8  The contents of this file are subject to the terms of the
       
     9  Common Development and Distribution License (the "License").
       
    10  You may not use this file except in compliance with the License.
       
    11 
       
    12  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    13  or http://www.opensolaris.org/os/licensing.
       
    14  See the License for the specific language governing permissions
       
    15  and limitations under the License.
       
    16 
       
    17  When distributing Covered Code, include this CDDL HEADER in each
       
    18  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    19  If applicable, add the following below this CDDL HEADER, with the
       
    20  fields enclosed by brackets "[]" replaced with your own identifying
       
    21  information: Portions Copyright [yyyy] [name of copyright owner]
       
    22 
       
    23  CDDL HEADER END
       
    24 
       
    25     NOTE:  This service manifest is not editable; its contents will
       
    26     be overwritten by package or patch operations, including
       
    27     operating system upgrade.  Make customizations in a different
       
    28     file.
       
    29 -->
       
    30 
       
    31 <service_bundle type='manifest' name='memcached' >
       
    32 <service name='application/database/memcached' type='service' version='1' >
       
    33 <create_default_instance enabled='false' />
       
    34 
       
    35 
       
    36    <dependency
       
    37       name='network'
       
    38       grouping='require_all'
       
    39       restart_on='none'
       
    40       type='service'>
       
    41       <service_fmri value='svc:/milestone/network:default' />
       
    42    </dependency>
       
    43 
       
    44    <dependency
       
    45       name='name-services'
       
    46       grouping='require_all'
       
    47       restart_on='none'
       
    48       type='service'>
       
    49       <service_fmri value='svc:/milestone/name-services:default' />
       
    50    </dependency>
       
    51 
       
    52    <exec_method 
       
    53       type='method' 
       
    54       name='start'
       
    55       exec='/lib/svc/method/memcached start'
       
    56       timeout_seconds='-1' />
       
    57 
       
    58    <exec_method 
       
    59       type='method' 
       
    60       name='stop'
       
    61       exec='/lib/svc/method/memcached stop %{restarter/contract}'
       
    62       timeout_seconds='60' />
       
    63 
       
    64     <property_group name='memcached' type='application'>
       
    65        <propval name='options' type='astring' value='' />
       
    66        <propval name='value_authorization' type='astring' value='solaris.smf.value.memcached' />
       
    67        <propval name='action_authorization' type='astring' value='solaris.smf.manage.memcached' />
       
    68     </property_group>
       
    69 
       
    70     <stability value='Evolving' />
       
    71 
       
    72     <template>
       
    73       <common_name>
       
    74          <loctext xml:lang='C'>memcached 1.4.5</loctext>
       
    75       </common_name>
       
    76       <documentation>
       
    77          <manpage title='memcached' section='1m' manpath='/usr/share/man' />
       
    78       </documentation>
       
    79     </template>
       
    80 
       
    81 </service>
       
    82 </service_bundle>