X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..ce136e365e7258d85a27d44eb2817f881d78d25f:/cookbooks/rsyncd/recipes/default.rb diff --git a/cookbooks/rsyncd/recipes/default.rb b/cookbooks/rsyncd/recipes/default.rb index 29a9c879b..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