aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard-devel/squidguard_configurator.inc
diff options
context:
space:
mode:
authorCino <cino@hvc.rr.com>2014-10-09 11:00:37 -0400
committerCino <cino@hvc.rr.com>2014-10-09 11:00:37 -0400
commit5c19bdaccbee0cffb5c02d05780755abdc73e9bd (patch)
tree3393bca10f4d127766207676bf3fcd2b0bdb1880 /config/squidGuard-devel/squidguard_configurator.inc
parent9a17909ebbbffcf879d169b680fb6510dd72e44e (diff)
downloadpfsense-packages-5c19bdaccbee0cffb5c02d05780755abdc73e9bd.tar.gz
pfsense-packages-5c19bdaccbee0cffb5c02d05780755abdc73e9bd.tar.bz2
pfsense-packages-5c19bdaccbee0cffb5c02d05780755abdc73e9bd.zip
Missing LOGROTATE_MAXCOUNT variable
1.5 is missing certain variables to allow it to rotate the log files. I've added the variables that were used in the previous package version 1.4. Now log files will remove lines that exceed 1000 lines
Diffstat (limited to 'config/squidGuard-devel/squidguard_configurator.inc')
-rw-r--r--config/squidGuard-devel/squidguard_configurator.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/squidGuard-devel/squidguard_configurator.inc b/config/squidGuard-devel/squidguard_configurator.inc
index 493606d7..a48426bb 100644
--- a/config/squidGuard-devel/squidguard_configurator.inc
+++ b/config/squidGuard-devel/squidguard_configurator.inc
@@ -206,6 +206,7 @@ define('SQUIDGUARD_GUILOG_LEVEL', SQUIDGUARD_INFO); # log level
define('SQUIDGUARD_GUILOG_MAXCOUNT', 500); # log max lines
define('SQUIDGUARD_GUILOG_ENABLE', true); # on/off gui log - option override GUI settings
define('SQUIDGUARD_LOG_ENABLE', true); # on/off SG log - option override GUI settings
+define('SQUIDGUARD_LOGROTATE_MAXCOUNT', 1000); # logrotate max lines
#
define('FLT_DEFAULT_ALL', 'all');
@@ -1921,6 +1922,7 @@ function acl_remove_blacklist_items(&$items)
# -----------------------------------------------------------------------------
function sg_script_logrotate()
{
+ $lines = SQUIDGUARD_LOGROTATE_MAXCOUNT;
global $squidguard_config;