]> git.openstreetmap.org Git - chef.git/commitdiff
squid: temporary systemd journald purge
authorGrant Slater <git@firefishy.com>
Thu, 6 Aug 2020 23:49:23 +0000 (00:49 +0100)
committerGrant Slater <git@firefishy.com>
Thu, 6 Aug 2020 23:49:52 +0000 (00:49 +0100)
cookbooks/squid/recipes/default.rb

index b526aa19026e9b91270d920b4e8dc84987b5e456..8e7b4ad8b4ef42bc1097eb06b18a145ef5223c99 100644 (file)
@@ -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]"