Sun Java System Web Server 7.0 Update 4 Administrator's Guide

Service Manifest for Web Server

A service is usually defined by a service manifest, an XML file which describes a service and any instances associated with that service. The service manifest is imported into the repository by using the svccfg import command. Service Management Facility requires all manifest file for services to be in the following location /var/svc/manifest.


Note –

Use delete-service command to delete the service.


The following is the sample manifest file for Web Server:

<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">

<!-- Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
     Use is subject to license terms. -->

<service_bundle type='manifest' name='webserver7'>
    <service name='network/http' type='service' version='1'>
        <dependency name='filesystem' grouping='require_all' restart_on='none' type='service'>
            <service_fmri value='svc:/system/filesystem/local'/>
        </dependency>
	<instance name='admin-server' enabled='false'>
            <property_group name='start' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/admin-server/bin/startserv'/>
                <propval name='instanceRoot' type='astring' value='/var/opt/SUWwbsvr7'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='stop' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/admin-server/bin/stopserv'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='refresh' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/admin-server/bin/restartserv'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='startd' type='framework'>
                <propval name='ignore_error' type='astring' value='core,signal'/>
            </property_group>
        </instance>
	<instance name='https-mycompany.com' enabled='false'>
            <property_group name='start' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/https-mycompany.com/bin/startserv'/>
                <propval name='instanceRoot' type='astring' value='/var/opt/SUWwbsvr7'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='stop' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/https-mycompany.com/bin/stopserv'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='refresh' type='method'>
                <propval name='exec' type='astring' value='/var/opt/SUWwbsvr7/https-mycompany.com/bin/restartserv'/>
                <propval name='timeout' type='astring' value='300'/>
            </property_group>
            <property_group name='startd' type='framework'>
                <propval name='ignore_error' type='astring' value='core,signal'/>
            </property_group>
        </instance>
        <stability value='Evolving' />
        <template>
            <common_name>
            <loctext xml:lang='C'>Sun Java System Web Server 7</loctext>
            </common_name>
        </template>
     </service>
</service_bundle>