From: Grant Slater Date: Thu, 6 Aug 2020 23:49:23 +0000 (+0100) Subject: squid: temporary systemd journald purge X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/a440b3e8d77d798ec4a67645d934cd0f817893dd squid: temporary systemd journald purge --- diff --git a/cookbooks/squid/recipes/default.rb b/cookbooks/squid/recipes/default.rb index b526aa190..8e7b4ad8b 100644 --- a/cookbooks/squid/recipes/default.rb +++ b/cookbooks/squid/recipes/default.rb @@ -110,6 +110,11 @@ systemd_service "squid" do ExecStart "/usr/sbin/squid --foreground -YC" end +# Quick hack to cleanup bloated journal +execute "tmp_journal_clean_up" do + command "/bin/journalctl --vacuum-time=1d" +end + service "squid" do action :enable subscribes :restart, "systemd_service[squid]"