setup.py.mk: update pypi url
[unleashed-userland.git] / components / web / ejabberd / xmpp-ejabberd.xml
blob27a8cd36b983b18969d1b76a64a41ace58a404a5
1 <?xml version="1.0"?>
2 <!--
3 CDDL HEADER START
5 The contents of this file are subject to the terms of the
6 Common Development and Distribution License (the "License").
7 You may not use this file except in compliance with the License.
9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 or http://www.opensolaris.org/os/licensing.
11 See the License for the specific language governing permissions
12 and limitations under the License.
14 When distributing Covered Code, include this CDDL HEADER in each
15 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 If applicable, add the following below this CDDL HEADER, with the
17 fields enclosed by brackets "[]" replaced with your own identifying
18 information: Portions Copyright [yyyy] [name of copyright owner]
20 CDDL HEADER END
21 -->
23 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
24 <!--
25     Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
26 -->
28 <service_bundle type='manifest' name='SUNWejabberdr:ejabberd'>
30 <service
31         name='network/xmpp'
32         type='service'
33         version='1'>
35         <!--
36           Because we may have multiple instances of network/xmpp
37           provided by different implementations, we keep dependencies
38           and methods within the instance.
39         -->
41         <instance name='ejabberd' enabled='false'>
42                 <!--
43                   Wait for network interfaces to be initialized.
44                 -->
45                 <dependency name='network'
46                     grouping='require_all'
47                     restart_on='error'
48                     type='service'>
49                     <service_fmri value='svc:/milestone/network:default'/>
50                 </dependency>
52                 <!--
53                   Wait for all local filesystems to be mounted.
54                 -->
55                 <dependency name='filesystem-local'
56                     grouping='require_all'
57                     restart_on='none'
58                     type='service'>
59                     <service_fmri
60                         value='svc:/system/filesystem/local:default'/>
61                 </dependency>
63                 <method_context>
64                         <method_credential user='daemon' group='daemon' />
65                 </method_context>
67                 <exec_method
68                         type='method'
69                         name='start'
70                         exec='/lib/svc/method/xmpp-ejabberd start'
71                         timeout_seconds='60' />
73                 <exec_method
74                         type='method'
75                         name='stop'
76                         exec='/lib/svc/method/xmpp-ejabberd stop'
77                         timeout_seconds='60' />
79                 <property_group name='general' type='framework'>
80                         <propval name='action_authorization' type='astring'
81                             value='solaris.smf.manage.ejabberd' />
82                         <propval name='value_authorization' type='astring'
83                             value='solaris.smf.value.ejabberd' />
84                 </property_group>
86                 <property_group name='startd' type='framework'>
87                         <!-- sub-process core dumps shouldn't restart
88                             session -->
89                         <propval name='ignore_error' type='astring'
90                             value='core,signal' />
91                 </property_group>
93         <template>
94             <common_name>
95                 <loctext xml:lang='C'>
96                     ejabberd Jabber/XMPP Server
97                 </loctext>
98             </common_name>
99             <documentation>
100                 <manpage title='ejabberdctl' section='8'
101                     manpath='/usr/share/man' />
102                 <doc_link name='ejabberd.im'
103                     uri='http://www.ejabberd.im' />
104             </documentation>
105         </template>
106         </instance>
108         <stability value='Evolving' />
109 </service>
111 </service_bundle>