xref: /titanic_44/usr/src/cmd/stmfproxy/stmfproxy/stmfproxy.xml (revision 12ae924a5d4f6af89ee47f2908555a487618d82b)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5
6 CDDL HEADER START
7
8 The contents of this file are subject to the terms of the
9 Common Development and Distribution License (the "License").
10 You may not use this file except in compliance with the License.
11
12 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 or http://www.opensolaris.org/os/licensing.
14 See the License for the specific language governing permissions
15 and limitations under the License.
16
17 When distributing Covered Code, include this CDDL HEADER in each
18 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 If applicable, add the following below this CDDL HEADER, with the
20 fields enclosed by brackets "[]" replaced with your own identifying
21 information: Portions Copyright [yyyy] [name of copyright owner]
22
23 CDDL HEADER END
24
25 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
26 Use is subject to license terms.
27
28	Service manifests for the stmfproxy daemon
29-->
30
31<service_bundle type='manifest' name='SUNWstmfu:svc-stmfproxy'>
32
33<service
34    name='system/stmfproxy'
35    type='service'
36    version='1'>
37
38    <single_instance/>
39
40    <dependency
41        name='stmf'
42        grouping='require_all'
43        restart_on='none'
44        type='service'>
45        <service_fmri value='svc:/system/stmf' />
46    </dependency>
47
48	<!--
49	   Set a timeout of -1 to signify to inetd that we don't want
50	   to timeout this service, since the forked process is the
51	   one that does the services work. This is the case for most/all
52	   legacy inetd services; for services written to take advantage
53	   of Greenlines capabilities, the start method should fork
54	   off a process to handle the request and return a success code.
55	-->
56	<exec_method
57		type='method'
58		name='start'
59		exec='/usr/demo/comstar/bin/svc-stmfproxy %{config/proxy_host}'
60		timeout_seconds='600'>
61		<method_context>
62			<method_credential
63			user='root'
64			group='root'
65			privileges='basic,sys_devices'
66			/>
67		</method_context>
68	</exec_method>
69
70	<exec_method
71		type='method'
72		name='stop'
73		exec=':kill'
74		timeout_seconds='600'>
75		<method_context>
76			<method_credential
77			user='root'
78			group='root'
79			privileges='basic,sys_devices'
80			/>
81		</method_context>
82	</exec_method>
83
84        <property_group name='config' type='application' >
85                <stability value='Unstable' />
86                <propval name='proxy_host' type='astring'
87                        value='no:host:set' />
88                <propval name='proxy_port' type='integer'
89                        value='6543' />
90        </property_group>
91
92	<!--
93	    Create an enabled instance.
94	-->
95	<instance
96        name='default'
97        enabled='false' >
98	</instance>
99
100	<stability value='Evolving' />
101
102	<template>
103		<common_name>
104			<loctext xml:lang='C'>
105				stmfproxy daemon
106			</loctext>
107		</common_name>
108
109	</template>
110</service>
111
112</service_bundle>
113