components/ejabberd/xmpp-ejabberd.xml
author Sonam Gupta <sonam.x.gupta@oracle.com>
Sun, 17 Feb 2013 21:51:48 -0800
branchs11u1-sru
changeset 2495 eb04a6ca141d
parent 353 d9644516b4a8
permissions -rw-r--r--
15698471 cups should audit printing information in TX environments 14850597 TX printing is reported to print jobs even when request authorization fail. 16182423 Update error code for all the failed use of authorization records in CUPS 16182458 Print 3 files requesting nolabel and nobanner should produce 6 audit records 16201093 For remote print requests, the path token in AR from GZ needs modification

<?xml version="1.0"?>
<!--
CDDL HEADER START

The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.

You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.

When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]

CDDL HEADER END
-->

<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
    Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
-->

<service_bundle type='manifest' name='SUNWejabberdr:ejabberd'>

<service
	name='network/xmpp'
	type='service'
	version='1'>

	<!--
	  Because we may have multiple instances of network/xmpp
	  provided by different implementations, we keep dependencies
	  and methods within the instance.
	-->

	<instance name='ejabberd' enabled='false'>
		<!--
		  Wait for network interfaces to be initialized.
		-->
		<dependency name='network'
		    grouping='require_all'
		    restart_on='error'
		    type='service'>
		    <service_fmri value='svc:/milestone/network:default'/>
		</dependency>

		<!--
		  Wait for all local filesystems to be mounted.
		-->
		<dependency name='filesystem-local'
		    grouping='require_all'
		    restart_on='none'
		    type='service'>
		    <service_fmri
			value='svc:/system/filesystem/local:default'/>
		</dependency>

		<method_context>
			<method_credential user='daemon' group='daemon' />
		</method_context>

		<exec_method
			type='method'
			name='start'
			exec='/lib/svc/method/xmpp-ejabberd start'
			timeout_seconds='60' />

		<exec_method
			type='method'
			name='stop'
			exec='/lib/svc/method/xmpp-ejabberd stop'
			timeout_seconds='60' />

		<property_group name='general' type='framework'>
			<propval name='action_authorization' type='astring'
			    value='solaris.smf.manage.ejabberd' />
			<propval name='value_authorization' type='astring'
			    value='solaris.smf.value.ejabberd' />
		</property_group>

		<property_group name='startd' type='framework'>
			<!-- sub-process core dumps shouldn't restart
			    session -->
			<propval name='ignore_error' type='astring'
			    value='core,signal' />
		</property_group>

        <template>
            <common_name>
                <loctext xml:lang='C'>
                    ejabberd Jabber/XMPP Server
                </loctext>
            </common_name>
            <documentation>
                <manpage title='ejabberdctl' section='8'
                    manpath='/usr/share/man' />
                <doc_link name='ejabberd.im'
                    uri='http://www.ejabberd.im' />
            </documentation>
        </template>
	</instance>

        <stability value='Evolving' />
</service>

</service_bundle>