From: Grant Slater Date: Mon, 31 Aug 2020 17:01:52 +0000 (+0100) Subject: rsync: increase rsyncd transfer speed X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/52b81ae9e1251a8d6035ba16508543514fd7d220 rsync: increase rsyncd transfer speed --- 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