2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
4 This file and its contents are supplied under the terms of the
5 Common Development and Distribution License ("CDDL"), version 1.0.
6 You may only use this file in accordance with the terms of version
9 A full copy of the text of the CDDL should have accompanied this
10 source. A copy of the CDDL is also available via the Internet at
11 http://www.illumos.org/license/CDDL.
13 Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
15 <service_bundle type='manifest' name='chrony:default'>
17 <service name='network/chrony'
21 <create_default_instance enabled='false' />
23 <dependency name='network'
24 grouping='require_any'
27 <service_fmri value='svc:/network/service' />
30 <dependency name='filesystem'
31 grouping='require_all'
34 <service_fmri value='svc:/system/filesystem/minimal' />
37 <dependency name='name-services'
38 grouping='optional_all'
41 <service_fmri value='svc:/milestone/name-services' />
44 <dependency name='routing-setup'
45 grouping='optional_all'
48 <service_fmri value='svc:/network/routing-setup' />
51 <dependency name='config-file'
52 grouping='require_all'
55 <service_fmri value='file://localhost/etc/inet/chrony.conf' />
58 <dependency name='open-vm-tools'
59 grouping='exclude_all'
62 <service_fmri value='svc:/system/virtualization/open-vm-tools:default' />
65 <!-- ntpsec/vmtoolsd also adjust the system time. Prevent chrony running at the same time. -->
67 <dependency name='ntpsec'
68 grouping='exclude_all'
71 <service_fmri value='svc:/network/ntp:default' />
74 <exec_method type='method'
76 exec='/usr/sbin/chronyd'
77 timeout_seconds='600'>
78 <method_context security_flags='aslr'>
79 <method_credential user='root'
81 privileges='basic,!file_link_any,!proc_info,!proc_session,file_chown_self,file_dac_search,file_dac_write,net_privaddr,proc_lock_memory,proc_priocntl,proc_setid,sys_time' />
85 <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
87 <stability value='Unstable' />
91 <loctext xml:lang='C'>Network Time Protocol (NTP)</loctext>
94 <manpage title='chronyc' section='1' />
95 <manpage title='chronyd' section='8' />