X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/45dde9418dd342bb1a632d82559201c0b3becf1a..49e90bd4f3154ad5b3a542c7aad648b008dfe844:/cookbooks/rsyncd/recipes/default.rb diff --git a/cookbooks/rsyncd/recipes/default.rb b/cookbooks/rsyncd/recipes/default.rb index 7a93fc021..a2edd32fa 100644 --- a/cookbooks/rsyncd/recipes/default.rb +++ b/cookbooks/rsyncd/recipes/default.rb @@ -42,6 +42,13 @@ end package "rsync" +systemd_service "rsync-override" do + service "rsync" + dropin "override" + exec_start "/usr/bin/rsync --daemon --no-detach --bwlimit=16384" + notifies :restart, "service[rsync]" +end + service "rsync" do action [:enable, :start] supports :status => true, :restart => true @@ -51,7 +58,7 @@ template "/etc/default/rsync" do source "rsync.erb" owner "root" group "root" - mode 0o644 + mode "644" notifies :restart, "service[rsync]" end @@ -59,7 +66,7 @@ template "/etc/rsyncd.conf" do source "rsyncd.conf.erb" owner "root" group "root" - mode 0o644 + mode "644" variables :hosts_allow => hosts_allow, :hosts_deny => hosts_deny end