components/mysql-5-1/Solaris/mysql_51.xml
author Rich Burridge <rich.burridge@oracle.com>
Sun, 13 Jan 2013 21:34:37 -0800
branchs11-update
changeset 2464 7b25395bd731
parent 475 1cc764797e27
child 1541 b62d499c009a
child 2890 47c675945a45
permissions -rw-r--r--
16098826 hexedit needs TPNO and license file modifications for Solaris 11.2

<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--

 Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

 CDDL HEADER START

 The contents of this file are subject to the terms of the
 Common Development and Distribution License (the "License").
 You may not use this file except in compliance with the License.

 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 or http://www.opensolaris.org/os/licensing.
 See the License for the specific language governing permissions
 and limitations under the License.

 When distributing Covered Code, include this CDDL HEADER in each
 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 If applicable, add the following below this CDDL HEADER, with the
 fields enclosed by brackets "[]" replaced with your own identifying
 information: Portions Copyright [yyyy] [name of copyright owner]

 CDDL HEADER END

        NOTE:  This service manifest is not editable; its contents will
        be overwritten by package or patch operations, including
        operating system upgrade.  Make customizations in a different
        file.
-->

<service_bundle type='manifest' name='mysql'>

<service
        name='application/database/mysql'
        type='service'
        version='1'>

	<!--
	   Wait for network interfaces to be initialized.
	-->
        <dependency
                name='network'
                grouping='require_all'
                restart_on='none'
                type='service'>
                <service_fmri value='svc:/milestone/network:default' />
        </dependency> 

	<!--
	   Wait for all local filesystems to be mounted.
	-->
        <dependency
                name='filesystem-local'
                grouping='require_all'
                restart_on='none'
                type='service'>
                <service_fmri value='svc:/system/filesystem/local:default' />
        </dependency> 

        <exec_method
                type='method'
                name='start'
                exec='/lib/svc/method/mysql_51 start'
                timeout_seconds='60' />


        <exec_method
                type='method'
                name='stop'
                exec='/lib/svc/method/mysql_51 stop'
                timeout_seconds='60' />




        <instance name='version_51' enabled='false'>

        	<method_context working_directory='/var/mysql'>
                	<method_credential user='mysql' group='mysql' />
        	</method_context>

        	<property_group  name='mysql' type='application'>
                	<propval name='bin' type='astring'
                    	   value='/usr/mysql/5.1/bin' />
                	<propval name='data' type='astring'
                    	   value='/var/mysql/5.1/data' />
                        <propval name='value_authorization' type='astring'
                           value='solaris.smf.value.mysql/version_51' /> 
                        <propval name='action_authorization' type='astring'
                           value='solaris.smf.manage.mysql/version_51' />
			<propval name='enable_64bit' type='boolean' value='false' />
        	</property_group>

                <property_group name='general' type='framework'>
                        <propval name='action_authorization' type='astring' value='solaris.smf.manage.mysql/version_51' />
                        <propval name='value_authorization' type='astring' value='solaris.smf.value.mysql/version_51' />
                </property_group>
          </instance>

        <stability value='Evolving' />

        <template>
                <common_name>
                        <loctext xml:lang='C'>
                                MySQL RDBMS
                        </loctext>
                </common_name>
                <documentation>
                        <manpage title='MySQL 5.1.37' section='1' />
                        <doc_link name='mysql.com'
                                uri='http://dev.mysql.com/doc' />
                </documentation>
        </template>

</service>

</service_bundle>