rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / network / chrony / files / chrony.xml
blob95dc7b5455f0268dd88ba6955df73b88035134d8
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
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
7  1.0 of the CDDL.
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.
14 -->
15 <service_bundle type='manifest' name='chrony:default'>
17     <service name='network/chrony'
18              type='service'
19              version='1'>
21         <create_default_instance enabled='false' />
23         <dependency name='network'
24                     grouping='require_any'
25                     restart_on='error'
26                     type='service'>
27             <service_fmri value='svc:/network/service' />
28         </dependency>
30         <dependency name='filesystem'
31                     grouping='require_all'
32                     restart_on='error'
33                     type='service'>
34             <service_fmri value='svc:/system/filesystem/minimal' />
35         </dependency>
37         <dependency name='name-services'
38                     grouping='optional_all'
39                     restart_on='none'
40                     type='service'>
41             <service_fmri value='svc:/milestone/name-services' />
42         </dependency>
44         <dependency name='routing-setup'
45                     grouping='optional_all'
46                     restart_on='none'
47                     type='service'>
48             <service_fmri value='svc:/network/routing-setup' />
49         </dependency>
51         <dependency name='config-file'
52                     grouping='require_all'
53                     restart_on='refresh'
54                     type='path'>
55             <service_fmri value='file://localhost/etc/inet/chrony.conf' />
56         </dependency>
58         <dependency name='open-vm-tools'
59                     grouping='exclude_all'
60                     restart_on='none'
61                     type='service'>
62             <service_fmri value='svc:/system/virtualization/open-vm-tools:default' />
63         </dependency>
65         <!-- ntpsec/vmtoolsd also adjust the system time. Prevent chrony running at the same time. -->
67         <dependency name='ntpsec'
68                     grouping='exclude_all'
69                     restart_on='none'
70                     type='service'>
71             <service_fmri value='svc:/network/ntp:default' />
72         </dependency>
74         <exec_method type='method'
75                      name='start'
76                      exec='/usr/sbin/chronyd'
77                      timeout_seconds='600'>
78             <method_context security_flags='aslr'>
79                 <method_credential user='root'
80                                    group='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' />
82             </method_context>
83         </exec_method>
85         <exec_method type='method' name='stop' exec=':kill' timeout_seconds='60' />
87         <stability value='Unstable' />
89         <template>
90             <common_name>
91                 <loctext xml:lang='C'>Network Time Protocol (NTP)</loctext>
92             </common_name>
93             <documentation>
94                 <manpage title='chronyc' section='1' />
95                 <manpage title='chronyd' section='8' />
96             </documentation>
97         </template>
99     </service>
101 </service_bundle>