components/mysql-5-1/Solaris/mysql_51.xml
changeset 444 a2a87847a213
child 475 1cc764797e27
equal deleted inserted replaced
443:6e40aa5a30d8 444:a2a87847a213
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
     3 <!--
       
     4 
       
     5  Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
     6 
       
     7  CDDL HEADER START
       
     8 
       
     9  The contents of this file are subject to the terms of the
       
    10  Common Development and Distribution License (the "License").
       
    11  You may not use this file except in compliance with the License.
       
    12 
       
    13  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    14  or http://www.opensolaris.org/os/licensing.
       
    15  See the License for the specific language governing permissions
       
    16  and limitations under the License.
       
    17 
       
    18  When distributing Covered Code, include this CDDL HEADER in each
       
    19  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    20  If applicable, add the following below this CDDL HEADER, with the
       
    21  fields enclosed by brackets "[]" replaced with your own identifying
       
    22  information: Portions Copyright [yyyy] [name of copyright owner]
       
    23 
       
    24  CDDL HEADER END
       
    25 
       
    26         NOTE:  This service manifest is not editable; its contents will
       
    27         be overwritten by package or patch operations, including
       
    28         operating system upgrade.  Make customizations in a different
       
    29         file.
       
    30 -->
       
    31 
       
    32 <service_bundle type='manifest' name='mysql'>
       
    33 
       
    34 <service
       
    35         name='application/database/mysql'
       
    36         type='service'
       
    37         version='1'>
       
    38 
       
    39 	<!--
       
    40 	   Wait for network interfaces to be initialized.
       
    41 	-->
       
    42         <dependency
       
    43                 name='network'
       
    44                 grouping='require_all'
       
    45                 restart_on='none'
       
    46                 type='service'>
       
    47                 <service_fmri value='svc:/milestone/network:default' />
       
    48         </dependency> 
       
    49 
       
    50 	<!--
       
    51 	   Wait for all local filesystems to be mounted.
       
    52 	-->
       
    53         <dependency
       
    54                 name='filesystem-local'
       
    55                 grouping='require_all'
       
    56                 restart_on='none'
       
    57                 type='service'>
       
    58                 <service_fmri value='svc:/system/filesystem/local:default' />
       
    59         </dependency> 
       
    60 
       
    61         <exec_method
       
    62                 type='method'
       
    63                 name='start'
       
    64                 exec='/lib/svc/method/mysql_51 start'
       
    65                 timeout_seconds='60' />
       
    66 
       
    67 
       
    68         <exec_method
       
    69                 type='method'
       
    70                 name='stop'
       
    71                 exec='/lib/svc/method/mysql_51 stop'
       
    72                 timeout_seconds='60' />
       
    73 
       
    74 
       
    75 
       
    76 
       
    77         <instance name='version_51' enabled='false'>
       
    78 
       
    79         	<method_context working_directory='/var/mysql'>
       
    80                 	<method_credential user='mysql' group='mysql' />
       
    81         	</method_context>
       
    82 
       
    83         	<property_group  name='mysql' type='application'>
       
    84                 	<propval name='bin' type='astring'
       
    85                     	   value='/usr/mysql/5.1/bin' />
       
    86                 	<propval name='data' type='astring'
       
    87                     	   value='/var/mysql/5.1/data' />
       
    88                         <propval name='value_authorization' type='astring'
       
    89                            value='solaris.smf.value.mysql/version_51' /> 
       
    90                         <propval name='action_authorization' type='astring'
       
    91                            value='solaris.smf.manage.mysql/version_51' />
       
    92 			<propval name='enable_64bit' type='boolean' value='false' />
       
    93         	</property_group>
       
    94 
       
    95                 <property_group name='general' type='framework'>
       
    96                         <propval name='action_authorization' type='astring' value='solaris.smf.manage.mysql/version_51' />
       
    97                         <propval name='value_authorization' type='astring' value='solaris.smf.value.mysql/version_51' />
       
    98                 </property_group>
       
    99           </instance>
       
   100 
       
   101         <stability value='Evolving' />
       
   102 
       
   103         <template>
       
   104                 <common_name>
       
   105                         <loctext xml:lang='C'>
       
   106                                 MySQL RDBMS
       
   107                         </loctext>
       
   108                 </common_name>
       
   109                 <documentation>
       
   110                         <manpage title='MySQL 5.1.37' section='1' />
       
   111                         <doc_link name='mysql.com'
       
   112                                 url='http://dev.mysql.com/doc' />
       
   113                 </documentation>
       
   114         </template>
       
   115 
       
   116 </service>
       
   117 
       
   118 </service_bundle>
       
   119