diff options
author | dvserg <dv_serg@mail.ru> | 2011-02-17 06:15:45 +0300 |
---|---|---|
committer | dvserg <dv_serg@mail.ru> | 2011-02-17 06:15:45 +0300 |
commit | 8633628b5abe10a03528ee8d0f3da12451d5f9e4 (patch) | |
tree | 372a6ce792c6214e99e14222348385be7a386f9e /config/squidGuard/squidguard_configurator.inc | |
parent | 5793cd080d1ba0ad5cd7b16f2d6680ce61150afd (diff) | |
download | pfsense-packages-8633628b5abe10a03528ee8d0f3da12451d5f9e4.tar.gz pfsense-packages-8633628b5abe10a03528ee8d0f3da12451d5f9e4.tar.bz2 pfsense-packages-8633628b5abe10a03528ee8d0f3da12451d5f9e4.zip |
squidGuard log changes
Diffstat (limited to 'config/squidGuard/squidguard_configurator.inc')
-rw-r--r-- | config/squidGuard/squidguard_configurator.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc index 5315d508..7db0f8ff 100644 --- a/config/squidGuard/squidguard_configurator.inc +++ b/config/squidGuard/squidguard_configurator.inc @@ -1849,9 +1849,12 @@ function acl_remove_blacklist_items($items) # ----------------------------------------------------------------------------- # sg_script_logrotate +# truncate SG logfile to $lines # ----------------------------------------------------------------------------- function sg_script_logrotate() { + $lines = 1000; # SG logfile truncate lines count + global $squidguard_config; $sglogname = $squidguard_config[F_LOGDIR] . "/" . SQUIDGUARD_LOGFILE; $res = @@ -1859,9 +1862,9 @@ function sg_script_logrotate() #!/bin/sh # # This file generated automaticly with SquidGuard configurator +tail -{$lines} {$sglogname} > {$sglogname}.0 +tail -{$lines} {$sglogname}.0 > {$sglogname} rm -f {$sglogname}.0 -cp -f {$sglogname} {$sglogname}.0 -echo '' > {$sglogname} EOD; return $res; } |