fastfetch: update to 2.30.1
[oi-userland.git] / components / database / postgresql-14 / files / postgresql_14.xml
blob57037091eb988febe7c2ca7030d6899a5a1eaafc
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4  Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
5  Use is subject to license terms.
7  CDDL HEADER START
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.
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.
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]
24  CDDL HEADER END
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 -->
32 <service_bundle type='manifest' name='postgresql_14'>
34 <service
35         name='application/database/postgresql_14'
36         type='service'
37         version='1'>
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>
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>
61         <exec_method
62                 type='method'
63                 name='start'
64                 exec='/lib/svc/method/postgres_14 start'
65                 timeout_seconds='60' />
67         <exec_method
68                 type='method'
69                 name='stop'
70                 exec='/lib/svc/method/postgres_14 stop'
71                 timeout_seconds='60' />
73         <exec_method
74                 type='method'
75                 name='refresh'
76                 exec='/lib/svc/method/postgres_14 refresh'
77                 timeout_seconds='60' />
79         <!--
80           Both action_authorization and value_authorization are needed
81           to allow the framework general/enabled property to be changed
82           when performing action (enable, disable, etc) on the service.
83         -->
84         <property_group name='general' type='framework'>
85                 <propval name='value_authorization' type='astring'
86                         value='solaris.smf.value.postgres' />
87                 <propval name='action_authorization' type='astring'
88                         value='solaris.smf.manage.postgres' />
89         </property_group>
91         <instance name='default' enabled='false'>
93                 <method_context>
94                         <method_credential user='postgres' group='postgres' />
95                 </method_context>
97                 <!--
98                    Make sure the data configurable property points to the
99                    appropriate database directory and port number in
100                    postgresql.conf is different than the other instances.
101                 -->
102                 <property_group name='postgresql_14' type='application'>
103                         <propval name='bin' type='astring'
104                            value='/usr/postgres/14/bin' />
105                         <propval name='data' type='astring'
106                            value='/var/postgres/14/data' />
107                         <propval name='log' type='astring'
108                            value='server.log' />
109                         <propval name='initialized' type='boolean'
110                            value='false' />
111                         <propval name='value_authorization' type='astring'
112                            value='solaris.smf.value.postgres' />
113                 </property_group>
115         </instance>
117         <stability value='Evolving' />
119         <template>
120                 <common_name>
121                         <loctext xml:lang='C'>
122                                 PostgreSQL RDBMS version 14
123                         </loctext>
124                 </common_name>
125         </template>
127 </service>
129 </service_bundle>