]> git.openstreetmap.org Git - chef.git/commitdiff
squid: use manager port mgr:counters
authorGrant Slater <git@firefishy.com>
Mon, 25 Nov 2019 20:47:48 +0000 (20:47 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 25 Nov 2019 20:47:48 +0000 (20:47 +0000)
cookbooks/squid/recipes/default.rb

index 72aeb41cfb78e31d118d9df4c283f7359a8e3d2d..2d0c3efe3e1847b6727c47a6c310888a2ea48a82 100644 (file)
@@ -116,7 +116,7 @@ log "squid-restart" do
   message "Restarting squid due to counter wraparound"
   notifies :restart, "service[squid]"
   only_if do
-    IO.popen(["squidclient", "--host=127.0.0.1", "--port=80", "mgr:counters"]) do |io|
+    IO.popen(["squidclient", "--host=127.0.0.1", "--port=3128", "mgr:counters"]) do |io|
       io.each.grep(/^[a-z][a-z_.]+ = -[0-9]+$/).count.positive?
     end
   end