diff options
author | jim-p <jimp@pfsense.org> | 2010-07-11 13:04:23 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-07-11 13:04:23 -0400 |
commit | 20b8a6f8e4125ed4d25901bc72cf595df60e5379 (patch) | |
tree | 23bf29831da2e6988381d4e12edadc9c244b791f | |
parent | e4b99f2497c3f5a52b68116c372cd9f6b5a74088 (diff) | |
download | pfsense-packages-20b8a6f8e4125ed4d25901bc72cf595df60e5379.tar.gz pfsense-packages-20b8a6f8e4125ed4d25901bc72cf595df60e5379.tar.bz2 pfsense-packages-20b8a6f8e4125ed4d25901bc72cf595df60e5379.zip |
Stop squid from removing every cron job that rotates logs. This breaks lightsquid's rotation. Found-By: lsoltero on the forum.
-rw-r--r-- | config/squid/squid.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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'] = "*"; |