diff options
author | dvserg <dv_serg@mail.ru> | 2011-01-03 13:22:30 +0300 |
---|---|---|
committer | dvserg <dv_serg@mail.ru> | 2011-01-03 13:22:30 +0300 |
commit | 011958d903104495d204881497bf20103441df41 (patch) | |
tree | a108a5746421866e3b2cfc6c240df41059a34125 | |
parent | 4fc28f4f28f865773def1cebb722e6fa952a00a4 (diff) | |
download | pfsense-packages-011958d903104495d204881497bf20103441df41.tar.gz pfsense-packages-011958d903104495d204881497bf20103441df41.tar.bz2 pfsense-packages-011958d903104495d204881497bf20103441df41.zip |
Lisghtsquid disable log rotation
-rw-r--r-- | config/lightsquid/lightsquid.inc | 56 | ||||
-rw-r--r-- | config/lightsquid/lightsquid.xml | 4 |
2 files changed, 30 insertions, 30 deletions
diff --git a/config/lightsquid/lightsquid.inc b/config/lightsquid/lightsquid.inc index 2ed5e8ed..2d3ef16f 100644 --- a/config/lightsquid/lightsquid.inc +++ b/config/lightsquid/lightsquid.inc @@ -251,34 +251,34 @@ function lightsquid_resync() { } // set shedule - squid rotate - if ($tm_squid) { - $on = false; - $opt = array("0", "0", "*", "*", "*", "root", CRONTAB_SQUID_TEMPLATE); - switch($tm_squid) { - // day of month - case 'lsr_none':$on = false; break; - case 'lsr_d1': $on = true; $opt[2]= "*/1"; break; - case 'lsr_d2': $on = true; $opt[2]= "*/2"; break; - case 'lsr_d3': $on = true; $opt[2]= "*/3"; break; - case 'lsr_d4': $on = true; $opt[2]= "*/4"; break; - case 'lsr_d5': $on = true; $opt[2]= "*/5"; break; - case 'lsr_d6': $on = true; $opt[2]= "*/6"; break; - case 'lsr_d10': $on = true; $opt[2]= "*/10"; break; - case 'lsr_d15': $on = true; $opt[2]= "*/15"; break; - case 'lsr_d20': $on = true; $opt[2]= "*/20"; break; - case 'lsr_d25': $on = true; $opt[2]= "*/25"; break; - case 'lsr_d30': $on = true; $opt[2]= "*/30"; break; - // day of week - case 'lsr_w1': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w2': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w3': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w4': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w5': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w6': $on = true; $opt[4]= "*/1"; break; - case 'lsr_w7': $on = true; $opt[4]= "*/1"; break; - } - ls_setup_cron("lightsquid_squid_rotate", $opt, CRONTAB_SQUID_JOBKEY, $on); - } else +# if ($tm_squid) { +# $on = false; +# $opt = array("0", "0", "*", "*", "*", "root", CRONTAB_SQUID_TEMPLATE); +# switch($tm_squid) { +# // day of month +# case 'lsr_none':$on = false; break; +# case 'lsr_d1': $on = true; $opt[2]= "*/1"; break; +# case 'lsr_d2': $on = true; $opt[2]= "*/2"; break; +# case 'lsr_d3': $on = true; $opt[2]= "*/3"; break; +# case 'lsr_d4': $on = true; $opt[2]= "*/4"; break; +# case 'lsr_d5': $on = true; $opt[2]= "*/5"; break; +# case 'lsr_d6': $on = true; $opt[2]= "*/6"; break; +# case 'lsr_d10': $on = true; $opt[2]= "*/10"; break; +# case 'lsr_d15': $on = true; $opt[2]= "*/15"; break; +# case 'lsr_d20': $on = true; $opt[2]= "*/20"; break; +# case 'lsr_d25': $on = true; $opt[2]= "*/25"; break; +# case 'lsr_d30': $on = true; $opt[2]= "*/30"; break; +# // day of week +# case 'lsr_w1': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w2': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w3': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w4': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w5': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w6': $on = true; $opt[4]= "*/1"; break; +# case 'lsr_w7': $on = true; $opt[4]= "*/1"; break; +# } +# ls_setup_cron("lightsquid_squid_rotate", $opt, CRONTAB_SQUID_JOBKEY, $on); +# } else ls_setup_cron("lightsquid_squid_rotate", "", "", false); // update squid conf diff --git a/config/lightsquid/lightsquid.xml b/config/lightsquid/lightsquid.xml index dc2212ad..cb481943 100644 --- a/config/lightsquid/lightsquid.xml +++ b/config/lightsquid/lightsquid.xml @@ -184,7 +184,7 @@ <option><name>24(00)h</name><value>lhp_24h</value></option> </options> </field> - <field> + <!--field> <fielddescr>Squid rotate log sheduler</fielddescr> <fieldname>lightsquid_squidrotatelog_sheduler_time</fieldname> <description> @@ -218,7 +218,7 @@ <option><name>every 25 day</name><value>lsr_d25</value></option> <option><name>every 30 day</name><value>lsr_d30</value></option> </options> - </field> + </field--> <field> <fielddescr>Skip url</fielddescr> <fieldname>lightsquid_skipurl</fieldname> |