aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <martin.fuchs@trendchiller.com>2012-01-04 14:58:06 +0100
committerMartin Fuchs <martin.fuchs@trendchiller.com>2012-01-04 14:58:06 +0100
commit271b4d150eb3edd08bf05eb214c13e4a45bb692e (patch)
treea3e88a33c14287e47d929e9514849e8ae45be567
parent07cff0c375e8c696087622b6b539c4e5fd13a696 (diff)
downloadpfsense-packages-271b4d150eb3edd08bf05eb214c13e4a45bb692e.tar.gz
pfsense-packages-271b4d150eb3edd08bf05eb214c13e4a45bb692e.tar.bz2
pfsense-packages-271b4d150eb3edd08bf05eb214c13e4a45bb692e.zip
based on jimp 54cc1ac21a9e89a496800bb521ca7d485929cc95
-rw-r--r--config/squid-reverse/squid.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc
index 9a951f56..9b2901e5 100644
--- a/config/squid-reverse/squid.inc
+++ b/config/squid-reverse/squid.inc
@@ -595,6 +595,7 @@ function squid_install_cron($should_install) {
switch($should_install) {
case true:
if(!$is_installed) {
+ $cachedir =($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache');
$cron_item = array();
$cron_item['task_name'] = "squid_rotate_logs";
$cron_item['minute'] = "0";
@@ -603,7 +604,7 @@ function squid_install_cron($should_install) {
$cron_item['month'] = "*";
$cron_item['wday'] = "*";
$cron_item['who'] = "root";
- $cron_item['command'] = "/usr/local/sbin/squid -k rotate";
+ $cron_item['command'] = "/bin/rm {$cachedir}/swap.state; /usr/local/sbin/squid -k rotate";
$config['cron']['item'][] = $cron_item;
parse_config(true);
write_config("Squid Log Rotation");