xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.discardd/discard.xml (revision 4de2612967d06c4fdbf524a62556a1e8118a006f)
1<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3
4<!--
5 Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
6 Use is subject to license terms.
7
8 CDDL HEADER START
9
10 The contents of this file are subject to the terms of the
11 Common Development and Distribution License, Version 1.0 only
12 (the "License").  You may not use this file except in compliance
13 with the License.
14
15 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16 or http://www.opensolaris.org/os/licensing.
17 See the License for the specific language governing permissions
18 and limitations under the License.
19
20 When distributing Covered Code, include this CDDL HEADER in each
21 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
22 If applicable, add the following below this CDDL HEADER, with the
23 fields enclosed by brackets "[]" replaced with your own identifying
24 information: Portions Copyright [yyyy] [name of copyright owner]
25
26 CDDL HEADER END
27
28	ident	"%Z%%M%	%I%	%E% SMI"
29
30	NOTE:  This service manifest is not editable; its contents will
31	be overwritten by package or patch operations, including
32	operating system upgrade.  Make customizations in a different
33	file.
34
35	Service manifests for discard
36-->
37
38<service_bundle type='manifest' name='SUNWcnsr:discard'>
39
40<service name='network/discard' type='service' 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='discard' />
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.discardd -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'
79			    value='dgram' />
80		    <propval name='proto' type='astring' value='udp6' />
81		    <propval name='wait' type='boolean' value='true' />
82		</property_group>
83	</instance>
84
85	<instance name='stream' enabled='false' >
86	    <exec_method
87		type='method'
88		name='inetd_start'
89		exec='/usr/lib/inet/in.discardd -s'
90		timeout_seconds='0'>
91		    <method_context>
92			<method_credential user='root' group='root' />
93		    </method_context>
94	    </exec_method>
95
96	    <exec_method
97		type='method'
98		name='inetd_disable'
99		exec=':kill'
100	        timeout_seconds='0'>
101	    </exec_method>
102
103	    <property_group name='inetd' type='framework'>
104		<propval name='endpoint_type' type='astring'
105			    value='stream' />
106		<propval name='proto' type='astring' value='tcp6' />
107		<propval name='wait' type='boolean' value='false' />
108	    </property_group>
109	</instance>
110
111	<stability value='Evolving' />
112
113	<template>
114		<common_name>
115			<loctext xml:lang='C'>
116			discard
117			</loctext>
118		</common_name>
119		<documentation>
120		</documentation>
121	</template>
122</service>
123
124</service_bundle>
125