X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4901122db6d2b8b208d6659e6642593f4d2cb429..571e5982cc82c4fbefff0d463895a029a68921fe:/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