From 20b8a6f8e4125ed4d25901bc72cf595df60e5379 Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 11 Jul 2010 13:04:23 -0400 Subject: Stop squid from removing every cron job that rotates logs. This breaks lightsquid's rotation. Found-By: lsoltero on the forum. --- config/squid/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/squid') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 86fb61a0..102eef8c 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -554,7 +554,7 @@ function squid_install_cron($should_install) { return; $x=0; foreach($config['cron']['item'] as $item) { - if(strstr($item['command'], "/usr/local/sbin/squid")) { + if(strstr($item['task_name'], "squid_rotate_logs")) { $is_installed = true; break; } @@ -564,6 +564,7 @@ function squid_install_cron($should_install) { case true: if(!$is_installed) { $cron_item = array(); + $cron_item['task_name'] = "squid_rotate_logs"; $cron_item['minute'] = "0"; $cron_item['hour'] = "0"; $cron_item['mday'] = "*"; -- cgit v1.2.3