libunibreak: update to 5.1 and add test results
[oi-userland.git] / components / database / pgbouncer / files / pgbouncer.xml
blob55e49c5a3102c6687d193a38752ada1957cbbbe3
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4  Copyright 2008 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  ident  "@(#)pgbouncer.xml      1.1     08/04/28 SMI"
28         NOTE:  This service manifest is not editable; its contents will
29         be overwritten by package or patch operations, including
30         operating system upgrade.  Make customizations in a different
31         file.
32 -->
34 <service_bundle type='manifest' name='pgbouncer'>
36 <service
37         name='application/database/pgbouncer'
38         type='service'
39         version='1'>
41         <!--   Wait for network interfaces to be initialized. -->         
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         <!--  Wait for all local filesystems to be mounted. -->
51         <dependency
52                 name='filesystem-local'
53                 grouping='require_all'
54                 restart_on='none'
55                 type='service'>
56                 <service_fmri value='svc:/system/filesystem/local:default' />
57         </dependency>
60       <exec_method
61           type='method'
62           name='start'
63           exec='/usr/bin/pgbouncer -d /etc/pgbouncer/pgbouncer.ini'
64           timeout_seconds='10' />
66       <exec_method
67           type='method'
68           name='stop'
69           exec=':kill'
70           timeout_seconds='5' />
72         <exec_method
73                 type='method'
74                 name='refresh'
75                 exec='/usr/bin/pgbouncer -R /etc/pgbouncer/pgbouncer.ini'
76                 timeout_seconds='60' />
80       <instance name='default' enabled='false'>
81         <method_context>
82                 <method_credential user='postgres' group='postgres' />
83         </method_context>
84       </instance>
86       <stability value='Unstable' />
88       <template>
89               <common_name>
90                       <loctext xml:lang='C'>
91                               PostgreSQL Connection Pool
92                       </loctext>
93               </common_name>
94               <documentation>
95                       <manpage title='pgbouncer' section='1'
96                               manpath='/usr/share/man' />
97               </documentation>
98       </template>
99 </service>
101 </service_bundle>