components/mysql-5-1/Solaris/mysql_51.xml
changeset 1791 53d056cbdb63
parent 1790 5185544d0b6e
child 1792 5cea652172c6
equal deleted inserted replaced
1790:5185544d0b6e 1791:53d056cbdb63
     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, 2013, 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 <service
       
    34         name='application/database/mysql'
       
    35         type='service'
       
    36         version='1'>
       
    37 
       
    38 	<!--
       
    39 	   Wait for network interfaces to be initialized.
       
    40 	-->
       
    41         <dependency
       
    42                 name='network'
       
    43                 grouping='require_all'
       
    44                 restart_on='none'
       
    45                 type='service'>
       
    46                 <service_fmri value='svc:/milestone/network:default' />
       
    47         </dependency> 
       
    48 
       
    49 	<!--
       
    50 	   Wait for all local filesystems to be mounted.
       
    51 	-->
       
    52         <dependency
       
    53                 name='filesystem-local'
       
    54                 grouping='require_all'
       
    55                 restart_on='none'
       
    56                 type='service'>
       
    57                 <service_fmri value='svc:/system/filesystem/local:default' />
       
    58         </dependency> 
       
    59 
       
    60         <instance name='version_51' enabled='false'>
       
    61                 <method_context working_directory='/var/mysql'>
       
    62                         <method_credential user='mysql' group='mysql' />
       
    63                 </method_context>
       
    64 
       
    65                 <exec_method
       
    66                         type='method'
       
    67                         name='start'
       
    68                         exec='/lib/svc/method/mysql_51 start'
       
    69                         timeout_seconds='60' />
       
    70 
       
    71                 <exec_method
       
    72                         type='method'
       
    73                         name='stop'
       
    74                         exec='/lib/svc/method/mysql_51 stop %{restarter/contract}'
       
    75                         timeout_seconds='60' />
       
    76 
       
    77                 <!--
       
    78                    refresh method for this service is not defined
       
    79                    because mysqld by itself cannot accept a HUP signal to
       
    80                    reload the configuration file my.cnf
       
    81                 -->
       
    82                 
       
    83         	<property_group  name='mysql' type='application'>
       
    84                         <propval name='cnf' type='astring'
       
    85                                  value='/etc/mysql/5.1/my.cnf' />
       
    86                         <propval name='bin' type='astring'
       
    87                                  value='/usr/mysql/5.1/bin' />
       
    88                 	<propval name='data' type='astring'
       
    89                     	         value='/var/mysql/5.1/data' />
       
    90                         <propval name='enable_64bit' type='boolean'
       
    91 			         value='true' />
       
    92                         <propval name='value_authorization' type='astring'
       
    93                                  value='solaris.smf.value.mysql' /> 
       
    94                         <propval name='action_authorization' type='astring'
       
    95                                  value='solaris.smf.manage.mysql' />
       
    96                 </property_group>
       
    97 
       
    98                 <property_group name='general' type='framework'>
       
    99                         <propval name='action_authorization' type='astring'
       
   100                                  value='solaris.smf.manage.mysql' />
       
   101                         <propval name='value_authorization' type='astring'
       
   102                                  value='solaris.smf.value.mysql' />
       
   103                 </property_group>
       
   104 
       
   105                 <template>
       
   106                         <common_name>
       
   107                                 <loctext xml:lang='C'>
       
   108                                         MySQL Database Management System
       
   109                                 </loctext>
       
   110                         </common_name>
       
   111 
       
   112                         <documentation>
       
   113                                 <manpage title='MySQL 5.1' section='1' />
       
   114                                 <doc_link name='mysql.com'
       
   115                                         uri='http://dev.mysql.com/doc' />
       
   116                         </documentation>
       
   117                 </template>
       
   118         </instance>
       
   119 
       
   120         <stability value='Evolving' />
       
   121 </service>
       
   122 </service_bundle>