X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2bfb0ef07fb64314f5c4ded641a8c280df9c1d0b..f59b522f292def10d39f5bb6e4fbe770add1b5c4:/cookbooks/rsyncd/recipes/default.rb diff --git a/cookbooks/rsyncd/recipes/default.rb b/cookbooks/rsyncd/recipes/default.rb index 0946a0c19..89ee45909 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 @@ -76,9 +77,8 @@ end firewall_rule "accept-rsync" do action :accept - source "net" - dest "fw" - proto "tcp:syn" + context :incoming + protocol :tcp dest_ports "rsync" - source_ports "1024:" + source_ports "1024-65535" end