xref: /titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.chargend/chargen.xml (revision bde3d612a7c090234c60e6e4578821237a5db135)
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
35<service_bundle type='manifest' name='SUNWcnsr:chargen'>
36
37<service
38	name='network/chargen'
39	type='service'
40	version='1'>
41
42	<restarter>
43	    <service_fmri value='svc:/network/inetd:default' />
44	</restarter>
45
46	<property_group name='inetd' type='framework'>
47	    <stability value='Evolving' />
48	    <propval name='name' type='astring' value='chargen' />
49	    <propval name='isrpc' type='boolean' value='false' />
50	</property_group>
51
52	<instance name='dgram' enabled='false' >
53	    <exec_method
54		type='method'
55		name='inetd_start'
56		exec='/usr/lib/inet/in.chargend -d'
57		timeout_seconds='0'>
58	   	    <method_context>
59			<method_credential user='root' group='root' />
60		    </method_context>
61	    </exec_method>
62
63	    <exec_method
64		type='method'
65		name='inetd_offline'
66	        exec=':kill_process'
67		timeout_seconds='0'>
68	    </exec_method>
69
70	    <exec_method
71		type='method'
72		name='inetd_disable'
73	        exec=':kill'
74		timeout_seconds='0'>
75	    </exec_method>
76
77	    <property_group name='inetd' type='framework'>
78		<propval name='endpoint_type' type='astring' value='dgram' />
79		<propval name='proto' type='astring' value='udp6' />
80		<propval name='wait' type='boolean' value='true' />
81	    </property_group>
82	</instance>
83
84	<instance name='stream' enabled='false' >
85	    <exec_method
86		type='method'
87		name='inetd_start'
88		exec='/usr/lib/inet/in.chargend -s'
89		timeout_seconds='0'>
90		    <method_context>
91			<method_credential user='root' group='root' />
92		    </method_context>
93	    </exec_method>
94
95	    <exec_method
96		type='method'
97		name='inetd_disable'
98		exec=':kill'
99		timeout_seconds='0'>
100	    </exec_method>
101
102	    <property_group name='inetd' type='framework'>
103		<propval name='endpoint_type' type='astring' value='stream' />
104		<propval name='proto' type='astring' value='tcp6' />
105		<propval name='wait' type='boolean' value='false' />
106	    </property_group>
107	</instance>
108
109	<stability value='Unstable' />
110
111	<template>
112		<common_name>
113			<loctext xml:lang='C'>
114			character generator
115			</loctext>
116		</common_name>
117		<documentation>
118		</documentation>
119	</template>
120</service>
121
122</service_bundle>
123