|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
3 <!-- |
|
4 |
|
5 Copyright (c) 2015, 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_56' enabled='false'> |
|
61 <method_context working_directory='/usr/mysql/5.6'> |
|
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_56 start' |
|
69 timeout_seconds='60' /> |
|
70 |
|
71 <exec_method |
|
72 type='method' |
|
73 name='stop' |
|
74 exec=':kill' |
|
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.6/my.cnf' /> |
|
86 <propval name='bin' type='astring' |
|
87 value='/usr/mysql/5.6/bin' /> |
|
88 <propval name='data' type='astring' |
|
89 value='/var/mysql/5.6/data' /> |
|
90 <propval name='value_authorization' type='astring' |
|
91 value='solaris.smf.value.mysql' /> |
|
92 <propval name='action_authorization' type='astring' |
|
93 value='solaris.smf.manage.mysql' /> |
|
94 </property_group> |
|
95 |
|
96 <property_group name='general' type='framework'> |
|
97 <propval name='action_authorization' type='astring' |
|
98 value='solaris.smf.manage.mysql' /> |
|
99 <propval name='value_authorization' type='astring' |
|
100 value='solaris.smf.value.mysql' /> |
|
101 </property_group> |
|
102 |
|
103 <template> |
|
104 <common_name> |
|
105 <loctext xml:lang='C'> |
|
106 MySQL Database Management System |
|
107 </loctext> |
|
108 </common_name> |
|
109 |
|
110 <documentation> |
|
111 <manpage title='MySQL 5.6' section='1' /> |
|
112 <doc_link name='mysql.com' |
|
113 uri='http://dev.mysql.com/doc' /> |
|
114 </documentation> |
|
115 </template> |
|
116 </instance> |
|
117 |
|
118 <stability value='Evolving' /> |
|
119 </service> |
|
120 </service_bundle> |