diff options
Diffstat (limited to 'config/squid')
-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 3848b818..5ad2eb4c 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -548,6 +548,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"; @@ -556,7 +557,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"); |