0
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!--
|
|
3 |
CDDL HEADER START
|
|
4 |
|
|
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.
|
|
8 |
|
|
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.
|
|
13 |
|
|
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]
|
|
19 |
|
|
20 |
CDDL HEADER END
|
|
21 |
-->
|
|
22 |
|
|
23 |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
24 |
<!--
|
|
25 |
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
26 |
Use is subject to license terms.
|
|
27 |
|
|
28 |
ident "@(#)http-tomcat6.xml 1.1 08/12/16 SMI"
|
|
29 |
-->
|
|
30 |
|
|
31 |
<service_bundle type='manifest' name='SUNWtcatr:tomcat'>
|
|
32 |
|
|
33 |
<service
|
|
34 |
name='network/http'
|
|
35 |
type='service'
|
|
36 |
version='1'>
|
|
37 |
|
|
38 |
<!--
|
|
39 |
Because we may have multiple instances of network/http
|
|
40 |
provided by different implementations, we keep dependencies
|
|
41 |
and methods within the instance.
|
|
42 |
-->
|
|
43 |
|
|
44 |
<instance name='tomcat6' enabled='false'>
|
|
45 |
<!--
|
|
46 |
Wait for network interfaces to be initialized.
|
|
47 |
-->
|
|
48 |
<dependency name='network'
|
|
49 |
grouping='require_all'
|
|
50 |
restart_on='error'
|
|
51 |
type='service'>
|
|
52 |
<service_fmri value='svc:/milestone/network:default'/>
|
|
53 |
</dependency>
|
|
54 |
|
|
55 |
<!--
|
|
56 |
Wait for all local filesystems to be mounted.
|
|
57 |
-->
|
|
58 |
<dependency name='filesystem-local'
|
|
59 |
grouping='require_all'
|
|
60 |
restart_on='none'
|
|
61 |
type='service'>
|
|
62 |
<service_fmri
|
|
63 |
value='svc:/system/filesystem/local:default'/>
|
|
64 |
</dependency>
|
|
65 |
|
|
66 |
<!--
|
|
67 |
Wait for automounting to be available, as we may be
|
|
68 |
serving data from home directories or other remote
|
|
69 |
filesystems.
|
|
70 |
-->
|
|
71 |
<dependency name='autofs'
|
|
72 |
grouping='optional_all'
|
|
73 |
restart_on='error'
|
|
74 |
type='service'>
|
|
75 |
<service_fmri
|
|
76 |
value='svc:/system/filesystem/autofs:default'/>
|
|
77 |
</dependency>
|
|
78 |
|
|
79 |
<exec_method
|
|
80 |
type='method'
|
|
81 |
name='start'
|
|
82 |
exec='/lib/svc/method/http-tomcat6 start'
|
|
83 |
timeout_seconds='60'>
|
|
84 |
<method_context>
|
|
85 |
<method_credential
|
|
86 |
user='webservd' group='webservd'
|
|
87 |
privileges='basic,net_privaddr'/>
|
|
88 |
</method_context>
|
|
89 |
</exec_method>
|
|
90 |
|
|
91 |
<exec_method
|
|
92 |
type='method'
|
|
93 |
name='stop'
|
|
94 |
exec='/lib/svc/method/http-tomcat6 stop'
|
|
95 |
timeout_seconds='60' />
|
|
96 |
|
|
97 |
<template>
|
|
98 |
<common_name>
|
|
99 |
<loctext xml:lang='C'>
|
|
100 |
Apache Tomcat 6
|
|
101 |
</loctext>
|
|
102 |
</common_name>
|
|
103 |
|
|
104 |
<documentation>
|
|
105 |
<manpage title='tomcat' section='1M'
|
|
106 |
manpath='/usr/share/man' />
|
|
107 |
<doc_link name='apache.org'
|
|
108 |
uri='http://tomcat.apache.org' />
|
|
109 |
</documentation>
|
|
110 |
</template>
|
|
111 |
|
|
112 |
</instance>
|
|
113 |
|
|
114 |
<stability value='Evolving' />
|
|
115 |
|
|
116 |
</service>
|
|
117 |
|
|
118 |
</service_bundle>
|