Revision: 6449
http://ipcop.svn.sourceforge.net/ipcop/?rev=6449&view=rev
Author: owes
Date: 2012-03-03 06:50:23 +0000 (Sat, 03 Mar 2012)
Log Message:
-----------
If enough space available on /tmp, use /tmp for Blacklist download &
preparation. TODO: make sure 128 is large enough for Blacklists.
Modified Paths:
--------------
ipcop/trunk/src/scripts/blacklistupdate.pl
Modified: ipcop/trunk/src/scripts/blacklistupdate.pl
===================================================================
--- ipcop/trunk/src/scripts/blacklistupdate.pl 2012-03-02 18:23:33 UTC (rev
6448)
+++ ipcop/trunk/src/scripts/blacklistupdate.pl 2012-03-03 06:50:23 UTC (rev
6449)
@@ -33,7 +33,6 @@
my $make_clean = 1;
my $target = "/var/ipcop/proxy/download";
-my $tempdb = "$target/blacklists";
my $dbdir = "/var/lib/squidguard/db";
my $sourceurlfile = "/var/ipcop/proxy/blacklistupdate/blacklistupdate.urls";
@@ -134,6 +133,10 @@
my $source_name = '';
my @source_urllist = ();
+ # If enough space available, download and prepare in /tmp (uses tmpfs) to
increase speed
+ $target = '/tmp/blacklistu' if (&General::getavailabledisk('/tmp') > 128);
+ my $tempdb = "$target/blacklists";
+
if (-e "$sourceurlfile") {
open(FILE, $sourceurlfile);
@source_urllist = <FILE>;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn