remmina: update to 1.4.37
[oi-userland.git] / components / database / pgagent / files / pgagent.xml
blob4cf7cc2e3900e00c27197f75b48ccf920bfd228a
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  Copyright 2013 Alexander Pyhalov.  All rights reserved.
6  Use is subject to license terms.
8  CDDL HEADER START
10  The contents of this file are subject to the terms of the
11  Common Development and Distribution License (the "License").
12  You may not use this file except in compliance with the License.
14  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15  or http://www.opensolaris.org/os/licensing.
16  See the License for the specific language governing permissions
17  and limitations under the License.
19  When distributing Covered Code, include this CDDL HEADER in each
20  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
21  If applicable, add the following below this CDDL HEADER, with the
22  fields enclosed by brackets "[]" replaced with your own identifying
23  information: Portions Copyright [yyyy] [name of copyright owner]
25  CDDL HEADER END
27  ident  "@(#)pgagent.xml        1.1     08/04/28 SMI"
29         NOTE:  This service manifest is not editable; its contents will
30         be overwritten by package or patch operations, including
31         operating system upgrade.  Make customizations in a different
32         file.
33 -->
35 <service_bundle type='manifest' name='pgagent'>
37 <service
38         name='application/database/pgagent'
39         type='service'
40         version='1'>
42         <!--   Wait for network interfaces to be initialized. -->         
43         <dependency
44                 name='network'
45                 grouping='require_all'
46                 restart_on='none'
47                 type='service'>
48                 <service_fmri value='svc:/milestone/network:default' />
49         </dependency>
51         <!--  Wait for all local filesystems to be mounted. -->
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>
61       <exec_method
62           type='method'
63           name='start'
64           exec='/usr/bin/pgagent -t %{pgagent/poll_time} -r %{pgagent/retry_period} -s "%{pgagent/log}" -l "%{pgagent/verbosity}"  %{pgagent/conninfo}'
65           timeout_seconds='10' />
67       <exec_method
68           type='method'
69           name='stop'
70           exec=':kill'
71           timeout_seconds='5' />
74       <instance name='default' enabled='false'>
75         <method_context>
76                 <method_credential user='postgres' group='postgres' />
77         </method_context>
79         <property_group  name='pgagent' type='application'>
80                <propval name='conninfo' type='astring' value='host=127.0.0.1 dbname=pgagent user=postgres' />
81                <propval name='log' type='astring' value='/var/postgres/pgagent/pgagent.log' />
82                <propval name='poll_time' type='integer' value='10' />
83                <propval name='retry_period' type='integer' value='30' />
84                <propval name='verbosity' type='integer' value='0' />
85         </property_group>
86       </instance>
88       <stability value='Unstable' />
90       <template>
91               <common_name>
92                       <loctext xml:lang='C'>
93                               pgAgent job scheduler for PostgreSQL
94                       </loctext>
95               </common_name>
96               <documentation>
97                       <manpage title='pgagent' section='1'
98                               manpath='/usr/share/man' />
99               </documentation>
100       </template>
101 </service>
103 </service_bundle>