#
-# Cookbook Name:: squid
+# Cookbook:: squid
# Recipe:: default
#
-# Copyright 2011, OpenStreetMap Foundation
+# Copyright:: 2011, OpenStreetMap Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
address_families = %w[AF_UNIX AF_INET]
-address_families << "AF_INET6" unless node.interfaces(:family => :inet6).empty?
+# address_families << "AF_INET6" unless node.interfaces(:family => :inet6).empty?
systemd_service "squid" do
description "Squid caching proxy"
end
end
+log "squid-restart-shm" do
+ message "Restarting squid due to remounted /dev/shm"
+ notifies :restart, "service[squid]"
+ not_if do
+ File.exist?("/dev/shm/squid-squid-page-pool.shm")
+ end
+end
+
munin_plugin "squid_cache"
munin_plugin "squid_times"
munin_plugin "squid_icp"