From 52b81ae9e1251a8d6035ba16508543514fd7d220 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 31 Aug 2020 18:01:52 +0100 Subject: [PATCH] rsync: increase rsyncd transfer speed --- cookbooks/rsyncd/recipes/default.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.45.1