X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b..cc57b9e9a6f06eb2fdce5ed83aa5f9ed6cd90cad:/cookbooks/rsyncd/recipes/default.rb diff --git a/cookbooks/rsyncd/recipes/default.rb b/cookbooks/rsyncd/recipes/default.rb index 0946a0c19..bcc0046e4 100644 --- a/cookbooks/rsyncd/recipes/default.rb +++ b/cookbooks/rsyncd/recipes/default.rb @@ -48,7 +48,8 @@ package "rsync" systemd_service "rsync-override" do service "rsync" dropin "override" - exec_start "/usr/bin/rsync --daemon --no-detach --bwlimit=16384" + exec_start "/usr/bin/rsync --daemon --no-detach" + nice 10 read_write_paths writable_paths.sort notifies :restart, "service[rsync]" end @@ -78,7 +79,7 @@ firewall_rule "accept-rsync" do action :accept source "net" dest "fw" - proto "tcp:syn" + proto "tcp" dest_ports "rsync" - source_ports "1024:" + source_ports "1024-65535" end