xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.timed/time.xml (revision 82ae1648ab152f127ab6c9a6bdbea9e0a589a488)
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	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 manifests for time
34-->
35
36<service_bundle type='manifest' name='SUNWcnsr:time'>
37
38<service
39	name='network/time'
40	type='service'
41	version='1'>
42
43	<restarter>
44	    <service_fmri value='svc:/network/inetd:default' />
45	</restarter>
46
47	<property_group name='inetd' type='framework'>
48	    <stability value='Evolving' />
49	    <propval name='name' type='astring' value='time' />
50	    <propval name='isrpc' type='boolean' value='false' />
51	</property_group>
52
53	<instance name='dgram' enabled='false' >
54	    <exec_method
55		type='method'
56		name='inetd_start'
57		exec='/usr/lib/inet/in.timed -d'
58		timeout_seconds='0'>
59		    <method_context working_directory='/'>
60			<method_credential user='root' group='root' />
61		    </method_context>
62	    </exec_method>
63
64	    <exec_method
65		type='method'
66		name='inetd_offline'
67	        exec=':kill_process'
68		timeout_seconds='0'>
69	    </exec_method>
70
71	    <exec_method
72		type='method'
73		name='inetd_disable'
74		exec=':kill'
75	        timeout_seconds='0'>
76	    </exec_method>
77
78	    <property_group name='inetd' type='framework'>
79		<propval name='endpoint_type' type='astring' 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.timed -s'
90		timeout_seconds='0'>
91		    <method_context working_directory='/'>
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' value='stream' />
105		<propval name='proto' type='astring' value='tcp6' />
106		<propval name='wait' type='boolean' value='false' />
107	    </property_group>
108	</instance>
109
110	<stability value='Unstable' />
111
112	<template>
113		<common_name>
114			<loctext xml:lang='C'>
115			time
116			</loctext>
117		</common_name>
118		<documentation>
119		</documentation>
120	</template>
121</service>
122
123</service_bundle>
124