components/mysql-5-1/Solaris/mysql_51.xml
branchs11-update
changeset 2890 47c675945a45
parent 475 1cc764797e27
equal deleted inserted replaced
2888:adc592c67ee4 2890:47c675945a45
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
     3 <!--
     3 <!--
     4 
     4 
     5  Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     5  Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     6 
     6 
     7  CDDL HEADER START
     7  CDDL HEADER START
     8 
     8 
     9  The contents of this file are subject to the terms of the
     9  The contents of this file are subject to the terms of the
    10  Common Development and Distribution License (the "License").
    10  Common Development and Distribution License (the "License").
    28         operating system upgrade.  Make customizations in a different
    28         operating system upgrade.  Make customizations in a different
    29         file.
    29         file.
    30 -->
    30 -->
    31 
    31 
    32 <service_bundle type='manifest' name='mysql'>
    32 <service_bundle type='manifest' name='mysql'>
    33 
       
    34 <service
    33 <service
    35         name='application/database/mysql'
    34         name='application/database/mysql'
    36         type='service'
    35         type='service'
    37         version='1'>
    36         version='1'>
    38 
    37 
    56                 restart_on='none'
    55                 restart_on='none'
    57                 type='service'>
    56                 type='service'>
    58                 <service_fmri value='svc:/system/filesystem/local:default' />
    57                 <service_fmri value='svc:/system/filesystem/local:default' />
    59         </dependency> 
    58         </dependency> 
    60 
    59 
    61         <exec_method
    60         <instance name='version_51' enabled='false'>
    62                 type='method'
    61                 <method_context working_directory='/var/mysql'>
    63                 name='start'
    62                         <method_credential user='mysql' group='mysql' />
    64                 exec='/lib/svc/method/mysql_51 start'
    63                 </method_context>
    65                 timeout_seconds='60' />
       
    66 
    64 
       
    65                 <exec_method
       
    66                         type='method'
       
    67                         name='start'
       
    68                         exec='/lib/svc/method/mysql_51 start'
       
    69                         timeout_seconds='60' />
    67 
    70 
    68         <exec_method
    71                 <exec_method
    69                 type='method'
    72                         type='method'
    70                 name='stop'
    73                         name='stop'
    71                 exec='/lib/svc/method/mysql_51 stop'
    74                         exec='/lib/svc/method/mysql_51 stop %{restarter/contract}'
    72                 timeout_seconds='60' />
    75                         timeout_seconds='60' />
    73 
    76 
    74 
    77                 <!--
    75 
    78                    refresh method for this service is not defined
    76 
    79                    because mysqld by itself cannot accept a HUP signal to
    77         <instance name='version_51' enabled='false'>
    80                    reload the configuration file my.cnf
    78 
    81                 -->
    79         	<method_context working_directory='/var/mysql'>
    82                 
    80                 	<method_credential user='mysql' group='mysql' />
       
    81         	</method_context>
       
    82 
       
    83         	<property_group  name='mysql' type='application'>
    83         	<property_group  name='mysql' type='application'>
    84                 	<propval name='bin' type='astring'
    84                         <propval name='cnf' type='astring'
    85                     	   value='/usr/mysql/5.1/bin' />
    85                                  value='/etc/mysql/5.1/my.cnf' />
       
    86                         <propval name='bin' type='astring'
       
    87                                  value='/usr/mysql/5.1/bin' />
    86                 	<propval name='data' type='astring'
    88                 	<propval name='data' type='astring'
    87                     	   value='/var/mysql/5.1/data' />
    89                     	         value='/var/mysql/5.1/data' />
    88                         <propval name='value_authorization' type='astring'
    90                         <propval name='enable_64bit' type='boolean'
    89                            value='solaris.smf.value.mysql/version_51' /> 
    91 			         value='false' />
    90                         <propval name='action_authorization' type='astring'
    92                         <property name='value_authorization' type='astring'>
    91                            value='solaris.smf.manage.mysql/version_51' />
    93 				<astring_list>
    92 			<propval name='enable_64bit' type='boolean' value='false' />
    94                                  	<value_node value='solaris.smf.value.mysql' /> 
    93         	</property_group>
    95 					<value_node value='solaris.smf.value.mysql/version_51' />
       
    96 				</astring_list>		
       
    97 			</property>	
       
    98 			<property name='action_authorization' type='astring'>
       
    99                                 <astring_list>
       
   100                                         <value_node value='solaris.smf.manage.mysql' />
       
   101                                         <value_node value='solaris.smf.manage.mysql/version_51' />
       
   102                                 </astring_list>
       
   103                         </property>
       
   104                 </property_group>
    94 
   105 
    95                 <property_group name='general' type='framework'>
   106                 <property_group name='general' type='framework'>
    96                         <propval name='action_authorization' type='astring' value='solaris.smf.manage.mysql/version_51' />
   107 	                <property name='action_authorization' type='astring'>
    97                         <propval name='value_authorization' type='astring' value='solaris.smf.value.mysql/version_51' />
   108                         	 <astring_list>
       
   109                                 	 <value_node value='solaris.smf.manage.mysql' />
       
   110                                		 <value_node value='solaris.smf.manage.mysql/version_51' />
       
   111                            	</astring_list>
       
   112             		</property>
       
   113                         <property name='value_authorization' type='astring'>
       
   114                            	<astring_list>
       
   115                                		<value_node value='solaris.smf.value.mysql' />
       
   116                                		<value_node value='solaris.smf.value.mysql/version_51' />
       
   117                            	</astring_list>
       
   118             		</property>
    98                 </property_group>
   119                 </property_group>
    99           </instance>
   120 
       
   121                 <template>
       
   122                         <common_name>
       
   123                                 <loctext xml:lang='C'>
       
   124                                         MySQL Database Management System
       
   125                                 </loctext>
       
   126                         </common_name>
       
   127 
       
   128                         <documentation>
       
   129                                 <manpage title='MySQL 5.1' section='1' />
       
   130                                 <doc_link name='mysql.com'
       
   131                                         uri='http://dev.mysql.com/doc' />
       
   132                         </documentation>
       
   133                 </template>
       
   134         </instance>
   100 
   135 
   101         <stability value='Evolving' />
   136         <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                                 uri='http://dev.mysql.com/doc' />
       
   113                 </documentation>
       
   114         </template>
       
   115 
       
   116 </service>
   137 </service>
   117 
       
   118 </service_bundle>
   138 </service_bundle>
   119