diff options
-rw-r--r-- | packages/squid_ng.inc | 10 | ||||
-rw-r--r-- | pkg_config.xml | 14 |
2 files changed, 16 insertions, 8 deletions
diff --git a/packages/squid_ng.inc b/packages/squid_ng.inc index 5360797d..1623f9dc 100644 --- a/packages/squid_ng.inc +++ b/packages/squid_ng.inc @@ -212,12 +212,8 @@ function global_write_squid_config() $config_array[] = 'cache_replacement_policy ' . $cache_replacement . "\n\n"; unset($cache_replacement); - if (!file_exists("/var/squid/logs")) { - mwexec("mkdir -p /var/squid/logs"); - mwexec("chown squid:squid /var/squid/logs"); - } - $config_array[] = 'cache_access_log /var/squid/logs/access.log' . "\n"; - $config_array[] = 'cache_log /var/squid/logs/cache.log' . "\n"; + $config_array[] = 'cache_access_log /var/log/access.log' . "\n"; + $config_array[] = 'cache_log /var/log/cache.log' . "\n"; $config_array[] = 'cache_store_log none' . "\n"; unset($log_enabled); @@ -228,7 +224,7 @@ function global_write_squid_config() } unset($log_query_terms); - $config_array[] = 'useragent_log /var/squid/logs/useragent.log' . "\n\n"; + $config_array[] = 'useragent_log /var/log/useragent.log' . "\n\n"; unset($log_user_agents); $config_array[] = 'log_mime_hdrs off' . "\n"; diff --git a/pkg_config.xml b/pkg_config.xml index d958bdde..232ba61a 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -125,7 +125,7 @@ <logging> <facilityname>spamd</facilityname> <logfilename>spamd.log</logfilename> - </logging> + </logging> </package> <package> <name>assp</name> @@ -216,6 +216,18 @@ test server or link availability and modify translation or routing rules. This p <config_file>http://www.pfsense.com/packages/config/squid_ng.xml</config_file> <configurationfile>squid_ng.xml</configurationfile> <maintainer>michael.capp@gmail.com</maintainer> + <logging> + <facilityname>Squid Cache Log</facilityname> + <logfilename>cache.log</logfilename> + </logging> + <logging> + <facilityname>Squid Access Log</facilityname> + <logfilename>access.log</logfilename> + </logging> + <logging> + <facilityname>Squid User Agent Log</facilityname> + <logfilename>useragent.log</logfilename> + </logging> </package> <package> <name>arpwatch</name> |