0
|
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 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
Use is subject to license terms.
|
|
25 |
|
|
26 |
ident "@(#)ntp.xml 1.2 09/06/22 SMI"
|
|
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 |
|
|
34 |
<service_bundle type='manifest' name='SUNWntpr:ntp'>
|
|
35 |
|
|
36 |
<service
|
|
37 |
name='network/ntp'
|
|
38 |
type='service'
|
|
39 |
version='1'>
|
|
40 |
<single_instance />
|
|
41 |
<dependency
|
|
42 |
name='network'
|
|
43 |
grouping='require_any'
|
|
44 |
restart_on='error'
|
|
45 |
type='service'>
|
|
46 |
<service_fmri value='svc:/network/service' />
|
|
47 |
</dependency>
|
|
48 |
|
|
49 |
<!-- <dependent
|
|
50 |
name='ntp_multi-user'
|
|
51 |
grouping='optional_all'
|
|
52 |
restart_on='none'>
|
|
53 |
<service_fmri value='svc:/milestone/multi-user' />
|
|
54 |
</dependent>
|
|
55 |
-->
|
|
56 |
|
|
57 |
<exec_method
|
|
58 |
type='method'
|
|
59 |
name='start'
|
|
60 |
exec='/lib/svc/method/ntp %m'
|
|
61 |
timeout_seconds='600'>
|
|
62 |
<method_context>
|
|
63 |
<method_credential
|
|
64 |
user='root'
|
|
65 |
group='root'
|
|
66 |
privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,proc_lock_memory,sys_time'
|
|
67 |
/>
|
|
68 |
</method_context>
|
|
69 |
</exec_method>
|
|
70 |
|
|
71 |
<exec_method
|
|
72 |
type='method'
|
|
73 |
name='restart'
|
|
74 |
exec='/lib/svc/method/ntp %m'
|
|
75 |
timeout_seconds='1800'>
|
|
76 |
<method_context>
|
|
77 |
<method_credential
|
|
78 |
user='root'
|
|
79 |
group='root'
|
|
80 |
privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,proc_lock_memory,sys_time'
|
|
81 |
/>
|
|
82 |
</method_context>
|
|
83 |
</exec_method>
|
|
84 |
|
|
85 |
<exec_method
|
|
86 |
type='method'
|
|
87 |
name='stop'
|
|
88 |
exec=':kill'
|
|
89 |
timeout_seconds='60' />
|
|
90 |
|
|
91 |
<property_group name='general' type='framework'>
|
|
92 |
<!-- to start stop ntpd -->
|
|
93 |
<propval name='action_authorization' type='astring'
|
|
94 |
value='solaris.smf.manage.ntp' />
|
|
95 |
<propval name='value_authorization' type='astring'
|
|
96 |
value='solaris.smf.value.ntp' />
|
|
97 |
</property_group>
|
|
98 |
|
|
99 |
<instance name="default" enabled="false">
|
|
100 |
<property_group name='config' type='application' >
|
|
101 |
<!-- default property settings for ntpd(1M). -->
|
|
102 |
|
|
103 |
<propval
|
|
104 |
name='wait_for_sync'
|
|
105 |
type='boolean'
|
|
106 |
value='false' />
|
|
107 |
|
|
108 |
<propval
|
|
109 |
name='no_auth_required'
|
|
110 |
type='boolean'
|
|
111 |
value='false' />
|
|
112 |
|
|
113 |
<propval
|
|
114 |
name='verbose_logging'
|
|
115 |
type='boolean'
|
|
116 |
value='false' />
|
|
117 |
|
|
118 |
<propval
|
|
119 |
name='slew_always'
|
|
120 |
type='boolean'
|
|
121 |
value='false' />
|
|
122 |
|
|
123 |
<propval
|
|
124 |
name='always_allow_large_step'
|
|
125 |
type='boolean'
|
|
126 |
value='true' />
|
|
127 |
|
|
128 |
<propval
|
|
129 |
name='logfile'
|
|
130 |
type='astring'
|
|
131 |
value='/var/ntp/ntp.log' />
|
|
132 |
|
|
133 |
<propval
|
|
134 |
name='debuglevel'
|
|
135 |
type='integer'
|
|
136 |
value='0' />
|
|
137 |
|
|
138 |
<propval
|
|
139 |
name='mdnsregister'
|
|
140 |
type='boolean'
|
|
141 |
value='false' />
|
|
142 |
|
|
143 |
<!-- to change properties -->
|
|
144 |
<propval
|
|
145 |
name='value_authorization'
|
|
146 |
type='astring'
|
|
147 |
value='solaris.smf.value.ntp' />
|
|
148 |
|
|
149 |
</property_group>
|
|
150 |
</instance>
|
|
151 |
<stability value='Unstable' />
|
|
152 |
|
|
153 |
<template>
|
|
154 |
<common_name>
|
|
155 |
<loctext xml:lang='C'>
|
|
156 |
Network Time Protocol (NTP) Version 4
|
|
157 |
</loctext>
|
|
158 |
</common_name>
|
|
159 |
<documentation>
|
|
160 |
<manpage title='ntpd' section='1M' />
|
|
161 |
<manpage title='ntp.conf' section='4' />
|
|
162 |
<manpage title='ntpq' section='1M' />
|
|
163 |
</documentation>
|
|
164 |
</template>
|
|
165 |
</service>
|
|
166 |
|
|
167 |
</service_bundle>
|