Skip to content

Commit e754f43

Browse files
vvfedorenkofacebook-github-bot
authored andcommitted
save running state to tmpfs
Differential Revision: D69529771 fbshipit-source-id: a653fc385ea1e6a77adaf53a12d500feb4bb5464
1 parent fb45cf9 commit e754f43

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file is maintained by Chef. Do not edit, all changes will be
2+
# overwritten. See opsfiles/chef/cookbooks/core/fb_chrony
3+
4+
# Command-line options for chronyd
5+
OPTIONS="-F 2 -r"

cookbooks/fb_chrony/recipes/default.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,27 @@
2424
chrony_conf = '/etc/chrony.conf'
2525
chrony_user = 'chrony'
2626
chrony_group = 'chrony'
27+
chrony_sysconfig = '/etc/sysconfig/chronyd'
2728
elsif node.debian_family?
2829
chrony_svc = 'chrony'
2930
chrony_conf = '/etc/chrony/chrony.conf'
3031
chrony_user = '_chrony'
3132
chrony_group = '_chrony'
33+
chrony_sysconfig = '/etc/default/chrony'
3234
else
3335
fail 'fb_chrony: unsupported platform, aborting!'
3436
end
3537

3638
include_recipe 'fb_chrony::packages'
3739

40+
cookbook_file chrony_sysconfig do
41+
source 'chronyd_sysconfig'
42+
mode '0755'
43+
owner node.root_user
44+
group node.root_group
45+
notifies :restart, 'service[chrony]'
46+
end
47+
3848
directory '/var/run/chrony' do
3949
owner chrony_user
4050
group chrony_group

0 commit comments

Comments
 (0)