|
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) 2014, 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='service-network:ptp'> |
|
32 |
|
33 <service name='network/ptp' type='service' version='1'> |
|
34 <single_instance /> |
|
35 <dependency |
|
36 name='network' |
|
37 grouping='require_any' |
|
38 restart_on='error' |
|
39 type='service'> |
|
40 <service_fmri value='svc:/network/service' /> |
|
41 </dependency> |
|
42 |
|
43 <dependency |
|
44 name='filesystem' |
|
45 grouping='require_all' |
|
46 restart_on='error' |
|
47 type='service'> |
|
48 <service_fmri value='svc:/system/filesystem/minimal' /> |
|
49 </dependency> |
|
50 |
|
51 <dependency |
|
52 name='ntp' |
|
53 grouping='exclude_all' |
|
54 restart_on='none' |
|
55 type='service'> |
|
56 <service_fmri value='svc:/network/ntp:default' /> |
|
57 </dependency> |
|
58 |
|
59 <exec_method type='method' name='start' |
|
60 exec='/lib/svc/method/ptp %m' timeout_seconds='60'> |
|
61 <method_context> |
|
62 <method_credential |
|
63 user='root' group='root' |
|
64 privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,net_rawaccess,sys_time' |
|
65 /> |
|
66 </method_context> |
|
67 </exec_method> |
|
68 |
|
69 <exec_method type='method' name='restart' |
|
70 exec='/lib/svc/method/ptp %m' timeout_seconds='180'> |
|
71 <method_context> |
|
72 <method_credential |
|
73 user='root' group='root' |
|
74 privileges='basic,!file_link_any,!proc_info,!proc_session,net_privaddr,net_rawaccess,sys_time' |
|
75 /> |
|
76 </method_context> |
|
77 </exec_method> |
|
78 |
|
79 <exec_method type='method' name='stop' |
|
80 exec=':kill' timeout_seconds='60' /> |
|
81 |
|
82 <property_group name='general' type='framework'> |
|
83 <!-- to start stop ptpd --> |
|
84 <propval name='action_authorization' type='astring' |
|
85 value='solaris.smf.manage.ptp' /> |
|
86 <propval name='value_authorization' type='astring' |
|
87 value='solaris.smf.value.ptp' /> |
|
88 </property_group> |
|
89 |
|
90 <instance name="default" enabled="false"> |
|
91 <property_group name='config' type='application' > |
|
92 <!-- default property settings for ptpd(1M). --> |
|
93 |
|
94 <propval name='listen_ifname' type='astring' value='' /> |
|
95 |
|
96 <!-- node_type could be either slave or master --> |
|
97 <propval name='node_type' type='astring' value='' /> |
|
98 <propval name='use_hw' type='boolean' value='false' /> |
|
99 <propval name='domain' type='integer' value='0' /> |
|
100 <propval name='announce_interval' type='integer' value='2' /> |
|
101 <propval name='sync_interval' type='integer' value='1' /> |
|
102 |
|
103 <!-- default is /var/log/ptp.log --> |
|
104 <propval name='logfile' type='astring' |
|
105 value='/var/log/ptp.log' /> |
|
106 |
|
107 <propval name='other_options' type='astring' value='' /> |
|
108 |
|
109 <!-- to change properties --> |
|
110 <propval |
|
111 name='value_authorization' |
|
112 type='astring' |
|
113 value='solaris.smf.value.ptp' /> |
|
114 |
|
115 </property_group> |
|
116 </instance> |
|
117 <stability value='Unstable' /> |
|
118 |
|
119 <template> |
|
120 <common_name> |
|
121 <loctext xml:lang='C'> |
|
122 Precision Time Protocol (PTP) IEEE 1588-2008 (Version 2) |
|
123 </loctext> |
|
124 </common_name> |
|
125 <documentation> |
|
126 <manpage title='ptpd' section='1M' /> |
|
127 </documentation> |
|
128 </template> |
|
129 </service> |
|
130 |
|
131 </service_bundle> |