|
1 <?xml version="1.0"?> |
|
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
3 <!-- |
|
4 CDDL HEADER START |
|
5 |
|
6 The contents of this file are subject to the terms of the |
|
7 Common Development and Distribution License (the "License"). |
|
8 You may not use this file except in compliance with the License. |
|
9 |
|
10 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
11 or http://www.opensolaris.org/os/licensing. |
|
12 See the License for the specific language governing permissions |
|
13 and limitations under the License. |
|
14 |
|
15 When distributing Covered Code, include this CDDL HEADER in each |
|
16 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
17 If applicable, add the following below this CDDL HEADER, with the |
|
18 fields enclosed by brackets "[]" replaced with your own identifying |
|
19 information: Portions Copyright [yyyy] [name of copyright owner] |
|
20 |
|
21 CDDL HEADER END |
|
22 |
|
23 Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
|
24 |
|
25 NOTE: This service manifest is not editable; its contents will |
|
26 be overwritten by package or patch operations, including |
|
27 operating system upgrade. Make customizations in a different |
|
28 file. |
|
29 --> |
|
30 |
|
31 <service_bundle type='manifest' name='SUNWntpr:ntp'> |
|
32 |
|
33 <service |
|
34 name='network/ntp' |
|
35 type='service' |
|
36 version='1'> |
|
37 <single_instance /> |
|
38 <dependency |
|
39 name='network' |
|
40 grouping='require_any' |
|
41 restart_on='error' |
|
42 type='service'> |
|
43 <service_fmri value='svc:/network/service' /> |
|
44 </dependency> |
|
45 |
|
46 <!-- <dependent |
|
47 name='ntp_multi-user' |
|
48 grouping='optional_all' |
|
49 restart_on='none'> |
|
50 <service_fmri value='svc:/milestone/multi-user' /> |
|
51 </dependent> |
|
52 --> |
|
53 |
|
54 <exec_method |
|
55 type='method' |
|
56 name='start' |
|
57 exec='/lib/svc/method/ntp %m' |
|
58 timeout_seconds='600'> |
|
59 <method_context> |
|
60 <method_credential |
|
61 user='root' |
|
62 group='root' |
|
63 privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,proc_lock_memory,sys_time' |
|
64 /> |
|
65 </method_context> |
|
66 </exec_method> |
|
67 |
|
68 <exec_method |
|
69 type='method' |
|
70 name='restart' |
|
71 exec='/lib/svc/method/ntp %m' |
|
72 timeout_seconds='1800'> |
|
73 <method_context> |
|
74 <method_credential |
|
75 user='root' |
|
76 group='root' |
|
77 privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,proc_lock_memory,sys_time' |
|
78 /> |
|
79 </method_context> |
|
80 </exec_method> |
|
81 |
|
82 <exec_method |
|
83 type='method' |
|
84 name='stop' |
|
85 exec=':kill' |
|
86 timeout_seconds='60' /> |
|
87 |
|
88 <property_group name='general' type='framework'> |
|
89 <!-- to start stop ntpd --> |
|
90 <propval name='action_authorization' type='astring' |
|
91 value='solaris.smf.manage.ntp' /> |
|
92 <propval name='value_authorization' type='astring' |
|
93 value='solaris.smf.value.ntp' /> |
|
94 </property_group> |
|
95 |
|
96 <instance name="default" enabled="false"> |
|
97 <property_group name='config' type='application' > |
|
98 <!-- default property settings for ntpd(1M). --> |
|
99 |
|
100 <propval |
|
101 name='wait_for_sync' |
|
102 type='boolean' |
|
103 value='false' /> |
|
104 |
|
105 <propval |
|
106 name='no_auth_required' |
|
107 type='boolean' |
|
108 value='false' /> |
|
109 |
|
110 <propval |
|
111 name='verbose_logging' |
|
112 type='boolean' |
|
113 value='false' /> |
|
114 |
|
115 <propval |
|
116 name='slew_always' |
|
117 type='boolean' |
|
118 value='false' /> |
|
119 |
|
120 <propval |
|
121 name='always_allow_large_step' |
|
122 type='boolean' |
|
123 value='true' /> |
|
124 |
|
125 <propval |
|
126 name='logfile' |
|
127 type='astring' |
|
128 value='/var/ntp/ntp.log' /> |
|
129 |
|
130 <propval |
|
131 name='debuglevel' |
|
132 type='integer' |
|
133 value='0' /> |
|
134 |
|
135 <propval |
|
136 name='mdnsregister' |
|
137 type='boolean' |
|
138 value='false' /> |
|
139 |
|
140 <!-- to change properties --> |
|
141 <propval |
|
142 name='value_authorization' |
|
143 type='astring' |
|
144 value='solaris.smf.value.ntp' /> |
|
145 |
|
146 </property_group> |
|
147 </instance> |
|
148 <stability value='Unstable' /> |
|
149 |
|
150 <template> |
|
151 <common_name> |
|
152 <loctext xml:lang='C'> |
|
153 Network Time Protocol (NTP) Version 4 |
|
154 </loctext> |
|
155 </common_name> |
|
156 <documentation> |
|
157 <manpage title='ntpd' section='1M' /> |
|
158 <manpage title='ntp.conf' section='4' /> |
|
159 <manpage title='ntpq' section='1M' /> |
|
160 </documentation> |
|
161 </template> |
|
162 </service> |
|
163 |
|
164 </service_bundle> |