xref: /trafficserver/rc/trafficserver.xml.in (revision 41fe21b2)
1<?xml version="1.0"?><!-- $CVSHeader$ -->
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 This XML file is used for stopping and starting trafficserver using the
5 Solaris Service Management Facility.  See solaris.txt for more information
6
7  Licensed to the Apache Software Foundation (ASF) under one
8  or more contributor license agreements.  See the NOTICE file
9  distributed with this work for additional information
10  regarding copyright ownership.  The ASF licenses this file
11  to you under the Apache License, Version 2.0 (the
12  "License"); you may not use this file except in compliance
13  with the License.  You may obtain a copy of the License at
14
15      http://www.apache.org/licenses/LICENSE-2.0
16
17  Unless required by applicable law or agreed to in writing, software
18  distributed under the License is distributed on an "AS IS" BASIS,
19  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  See the License for the specific language governing permissions and
21  limitations under the License.
22
23-->
24
25<service_bundle type='manifest' name='apache:trafficserver'>
26
27<service
28	name='application/apache/trafficserver'
29	type='service'
30	version='1'>
31
32	<create_default_instance enabled='false' />
33
34	<!--
35	  Wait for network interfaces to be initialized.
36	-->
37	<dependency name='network'
38		grouping='require_all'
39		restart_on='none'
40		type='service'>
41		<service_fmri value='svc:/milestone/network:default'/>
42	</dependency>
43
44	<!--
45	  Wait for all local filesystems to be mounted.
46	-->
47	<dependency name='filesystem-local'
48	    grouping='require_all'
49	    restart_on='none'
50	    type='service'>
51	    <service_fmri
52		value='svc:/system/filesystem/local:default'/>
53	</dependency>
54
55	<dependent
56		name='apache-trafficserver-user-server'
57		grouping='optional_all'
58		restart_on='none'>
59			<service_fmri
60			    value='svc:/milestone/multi-user-server' />
61	</dependent>
62
63	<exec_method
64		type='method'
65		name='start'
66		exec='@exp_bindir@/traffic_manager 2>&amp;1 &amp;'
67		timeout_seconds='120' />
68
69	<exec_method
70		type='method'
71		name='stop'
72		exec=':kill'
73		timeout_seconds='120' />
74
75	<property_group name='cmd_opts' type='application'>
76		<stability value='Evolving' />
77	</property_group>
78
79	<property_group name='startd' type='framework'>
80		<!-- sub-process core dumps shouldn't restart
81			session -->
82		<propval name='ignore_error' type='astring'
83			value='core,signal' />
84	</property_group>
85
86	<stability value='Evolving' />
87
88	<template>
89		<common_name>
90			<loctext xml:lang='C'>
91				Apache Traffic Server
92			</loctext>
93		</common_name>
94		<documentation>
95			<doc_link name='trafficserver.apache.org'
96				uri='http://trafficserver.apache.org/docs' />
97		</documentation>
98	</template>
99</service>
100
101</service_bundle>
102