X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/aeaa46f3071de018b5c5e0f5678cb5b4082e3ddc..c21a743049e784dba40c58d00379dc62d578cdb9:/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