ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / web / ejabberd / files / xmpp-ejabberd.xml
blob5c8b95293ca8d9adddca0b27bdbc1d3917d99592
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='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_environment>
66           <envvar name='HOME' value='/tmp' />
67         </method_environment>
68                 </method_context>
70                 <exec_method
71                         type='method'
72                         name='start'
73                         exec='/lib/svc/method/svc-xmpp-ejabberd start'
74                         timeout_seconds='60' />
76                 <exec_method
77                         type='method'
78                         name='stop'
79                         exec='/lib/svc/method/svc-xmpp-ejabberd stop'
80                         timeout_seconds='60' />
82                 <property_group name='general' type='framework'>
83                         <propval name='action_authorization' type='astring'
84                             value='solaris.smf.manage.ejabberd' />
85                         <propval name='value_authorization' type='astring'
86                             value='solaris.smf.value.ejabberd' />
87                 </property_group>
89                 <property_group name='startd' type='framework'>
90                         <!-- sub-process core dumps shouldn't restart
91                             session -->
92                         <propval name='ignore_error' type='astring'
93                             value='core,signal' />
94                 </property_group>
96         <template>
97             <common_name>
98                 <loctext xml:lang='C'>
99                     ejabberd Jabber/XMPP Server
100                 </loctext>
101             </common_name>
102             <documentation>
103                 <manpage title='ejabberdctl' section='8'
104                     manpath='/usr/share/man' />
105                 <doc_link name='ejabberd.im'
106                     uri='http://www.ejabberd.im' />
107             </documentation>
108         </template>
109         </instance>
111         <stability value='Evolving' />
112 </service>
114 </service_bundle>