xref: /titanic_51/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd.xml (revision 15d9d0b528387242011cdcc6190c9e598cfe3a07)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	ident	"%Z%%M%	%I%	%E% SMI"
27
28	NOTE:  This service manifest is not editable; its contents will
29	be overwritten by package or patch operations, including
30	operating system upgrade.  Make customizations in a different
31	file.
32
33	Service manifest for the inetd delegated restarter.
34-->
35
36<service_bundle type='manifest' name='SUNWcsr:inetd'>
37
38<service
39	name='network/inetd'
40	type='service'
41	version='1'>
42
43	<create_default_instance enabled='false' />
44
45	<single_instance />
46
47	<dependency
48		name='loopback'
49		grouping='require_any'
50		restart_on='error'
51		type='service'>
52		<service_fmri value='svc:/network/loopback' />
53	</dependency>
54
55	<dependency
56		name='filesystem'
57		grouping='require_all'
58		restart_on='error'
59		type='service'>
60		<service_fmri value='svc:/system/filesystem/local'/>
61	</dependency>
62
63	<dependency
64		name='network'
65		grouping='optional_all'
66		restart_on='error'
67		type='service'>
68		<service_fmri value='svc:/milestone/network' />
69	</dependency>
70
71	<dependency
72		name='rpc'
73		grouping='optional_all'
74		restart_on='error'
75		type='service'>
76		<service_fmri value='svc:/network/rpc/bind' />
77	</dependency>
78
79	<!--
80	  Ensure that upgrade has the chance to run before
81	  the service to avoid gratuitous complaints about
82	  inetd.conf having been modified.
83	-->
84	<dependency
85		name='upgrade'
86		grouping='optional_all'
87		restart_on='none'
88		type='service'>
89		<service_fmri value='svc:/network/inetd-upgrade' />
90	</dependency>
91
92	<dependency
93		name='milestones'
94		grouping='require_all'
95		restart_on='none'
96		type='service'>
97		<service_fmri value='svc:/milestone/sysconfig' />
98		<service_fmri value='svc:/milestone/name-services' />
99	</dependency>
100
101	<dependent
102		name='inetd_multi-user'
103		grouping='optional_all'
104		restart_on='none'>
105		<service_fmri value='svc:/milestone/multi-user' />
106	</dependent>
107
108	<exec_method
109		type='method'
110		name='stop'
111		exec='/usr/lib/inet/inetd %m'
112		timeout_seconds='60' >
113	</exec_method>
114
115	<exec_method
116		type='method'
117		name='start'
118		exec='/usr/lib/inet/inetd %m'
119		timeout_seconds='60' >
120	</exec_method>
121
122	<exec_method
123		type='method'
124		name='refresh'
125		exec='/usr/lib/inet/inetd %m'
126		timeout_seconds='60' >
127	</exec_method>
128
129	<!--
130	   inetd's managed service property defaults. Values chosen to
131	   provide legacy inetd's behavior.
132	-->
133	<property_group
134	    name='defaults'
135	    type='application'>
136		<stability value='Evolving' />
137		<propval name='max_con_rate' type='integer' value='-1' />
138		<propval name='con_rate_offline' type='integer' value='-1' />
139		<propval name='max_copies' type='integer' value='-1' />
140		<propval name='failrate_cnt' type='integer' value='40' />
141		<propval name='failrate_interval' type='integer' value='60' />
142		<propval name='inherit_env' type='boolean' value='true' />
143		<propval name='tcp_trace' type='boolean' value='false' />
144		<propval name='tcp_wrappers' type='boolean' value='false' />
145		<propval name='bind_addr' type='astring' value='' />
146		<propval name='bind_fail_max' type='integer' value='-1' />
147		<propval name='bind_fail_interval' type='integer' value='-1' />
148		<propval name='connection_backlog' type='integer' value='10' />
149		<propval name='value_authorization' type='astring'
150			value='solaris.smf.value.inetd' />
151	</property_group>
152
153	<property_group name='general' type='framework'>
154		<!-- to manage inetd -->
155		<propval name='action_authorization' type='astring'
156			value='solaris.smf.manage.inetd' />
157		<propval name='value_authorization' type='astring'
158			value='solaris.smf.manage.inetd' />
159	</property_group>
160
161	<stability value='Unstable' />
162
163	<template>
164		<common_name>
165			<loctext xml:lang='C'>inetd</loctext>
166		</common_name>
167		<description>
168			<loctext xml:lang='C'>
169inetd provides listening and spawning services for registered Internet
170services.
171			</loctext>
172		</description>
173		<documentation>
174			<manpage title='inetd' section='1M'
175				manpath='/usr/share/man' />
176		</documentation>
177	</template>
178</service>
179
180</service_bundle>
181