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