<?xml version="1.0"?> 
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 
<!-- 
    Copyright 2004 Sun Microsystems, Inc.  All rights reserved. 
    Use is subject to license terms.

    ident       "@(#)http-apache2.xml   1.2     04/11/11 SMI" 
-->

<service_bundle type='manifest' name='SUNWapch2r:apache'>
<service 
        name='network/http' 
        type='service' 
        version='1'>
        <!-- 
          Because we may have multiple instances of network/http 
          provided by different implementations, we keep dependencies 
          and methods within the instance. 
        -->
        <instance name='apache2' enabled='false'> 
                <dependency name='tomcat' 
                    grouping='require_all' 
                    restart_on='error' 
                    type='service'> 
                        <service_fmri value='svc:/site/tomcat:default'/> 
                </dependency>

                <exec_method 
                        type='method' 
                        name='start' 
                        exec='/lib/svc/method/NWSINTapache2 start' 
                        timeout_seconds='60' />

                <exec_method 
                        type='method' 
                        name='stop' 
                        exec='/lib/svc/method/NWSINTapache2 stop' 
                        timeout_seconds='60' />

                <exec_method 
                        type='method' 
                        name='refresh' 
                        exec='/lib/svc/method/NWSINTapache2 refresh' 
                        timeout_seconds='60' />

                <property_group name='httpd' type='application'> 
                        <stability value='Evolving' /> 
                        <propval name='ssl' type='boolean' value='false' /> 
                </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>

        </instance>
        <stability value='Evolving' />
        <template> 
                <common_name> 
                        <loctext xml:lang='C'> 
                                Apache 2 HTTP server 
                        </loctext> 
                </common_name> 
                <documentation> 
                        <manpage title='apache2' section='1M' /> 
                        <doc_link name='apache.org' 
                                uri='http://httpd.apache.org' /> 
                </documentation> 
        </template> 
</service>
</service_bundle>
